Color Converter
convert between HEX, RGB, HSL, HSB, and CMYK color formats
By Bikram NathLast updated
Paste any color in HEX, RGB, HSL, HSB/HSV, or CMYK and all remaining formats update instantly. The typical use is bridging Figma and CSS: input HSL(217, 91%, 60%) and immediately read the HEX (#4A90E2) or RGB equivalent. Unlike single-direction tools, this surfaces all five formats at once, so you can pull a CMYK approximation for print without opening a second tool.
Try it now — free, instant, no signup
What is Color Converter?
This tool takes a single color value and computes its equivalent in all four other formats simultaneously. Enter rgb(74, 144, 226) and you immediately see #4A90E2, HSL(211, 74%, 59%), HSB(211, 67%, 89%), and an approximate CMYK breakdown. The conversion runs on the page using standard arithmetic, so there is no network call and no rate limit to hit.
Developers typically reach for this instead of RapidTables or Colorhexa when they need more than two formats in one step, or want to stay in a browser tab during design handoff rather than switching sites. For programmatic conversion inside a build pipeline, a library like chroma-js or tinycolor2 is the right choice; this tool is for the interactive, one-off lookup.
One important caveat about CMYK: the values shown are a mathematical approximation derived from RGB, not a device-specific ICC-profile conversion. Photoshop and InDesign apply color management against a print profile (SWOP, GRACoL, or vendor-specific), so their CMYK numbers will differ from what you see here. If your print vendor requires profile-accurate CMYK, export from Illustrator with the correct profile attached.
When to use Color Converter
Expert Notes
When converting between color spaces, be aware that RGB→HSL→RGB round-trips can introduce floating-point drift that changes the hex value by 1 step — irrelevant visually but can break exact color equality checks. The `oklch` color space (now in CSS Color Level 4) is perceptually uniform, meaning equal numeric distance produces equal perceived brightness difference, which makes programmatic palette generation more predictable than HSL. Hex shorthand (#FFF) is exactly equivalent to #FFFFFF but some SVG parsers and older email clients don't support the 3-digit form.
DevLab's Take
The go-to tool when you grab a hex color from a design file and need HSL values for a CSS custom property or Tailwind config — once you're generating design tokens programmatically, use a library like `chroma.js` or `culori` instead.