Enter a hex code to get detailed color information, schemes, and CSS
Instantly convert any color between HEX, RGB, HSL, HSV, and CMYK. Generate shades, tints, and six color harmony schemes.
Click the color preview square to open the native color picker, or type any HEX code directly into the input field.
HEX, RGB, HSL, HSV, and CMYK values update in real time as you choose any color.
Hit the clipboard button next to any format to copy the value — ready to paste into CSS, Figma, or code.
Scroll down to view complementary, triadic, analogous, and three more harmony schemes generated automatically.
Every color on a digital screen can be described in multiple mathematical ways. HEX is the shorthand used in web development; RGB describes the exact mix of red, green, and blue light; HSL makes it easy to adjust lightness and saturation programmatically; HSV is preferred in image-editing tools like Photoshop; and CMYK is the standard for offset printing.
This free converter handles all five formats in one place. Whether you're translating a brand color from a print spec into a CSS value, or building a design system that requires both digital and print outputs, this tool gives you every format instantly — with no signup required.
The shades and tints panel lets you create a full lightness ramp from your base color — ideal for generating Tailwind-style color scales. The harmony section applies established color theory to suggest six relationship types: complementary, triadic, analogous, split-complementary, tetradic, and monochromatic.
The Color Code Converter instantly translates any color between HEX, RGB, HSL, HSV, CMYK, and CSS named color formats. Enter a value in any supported format and every other representation is calculated in real time. This saves you from manual conversions when switching between design tools, CSS stylesheets, and print specifications.
Web developers use HEX and RGB for screen colors, print designers need CMYK values for accurate reproduction, and UI designers often prefer HSL for intuitive hue and saturation adjustments. This converter bridges all these workflows in one place, eliminating rounding errors and format confusion.
Every conversion is performed client-side in your browser for instant results. No data is sent to any server. Copy any value with a single click and paste it directly into your project.
HEX and RGB represent the same color model (Red, Green, Blue) but use different notation. HEX uses a six-character hexadecimal string (e.g., #FF5733), while RGB uses decimal values from 0–255 for each channel (e.g., rgb(255, 87, 51)). They are mathematically equivalent — FF in hex equals 255 in decimal.
HSL (Hue, Saturation, Lightness) is more intuitive for color manipulation. If you want to create a lighter shade, increase the lightness value. To desaturate a color, reduce the saturation. This is much harder to do mentally with HEX or RGB values, making HSL the preferred format for building design systems and CSS custom properties.
CMYK is a subtractive color model used for physical printing, while RGB/HEX are additive models for screens. Not all screen colors can be exactly reproduced in print — this is called the "color gamut" difference. The CMYK values shown here are mathematically converted approximations; for production printing, always use a calibrated ICC color profile.
Explore our full suite of free color utilities for designers and developers.