CMYK to Hex Converter
Enter cyan, magenta, yellow and black and get a hex code for the web. cmyk(0%, 64%, 80%, 9%) is #E8542E. Handy when a print brand guide needs a matching web color.
#E8542Eclosest CSS name: orangered
For example cmyk(88%, 44%, 0%, 0%)
Use 3 or 6 digits, for example #1E90FF or 19F
Closest CSS color orangered #FF4500
Pick visually and see the other formats
For example rgb(30, 144, 255) or 30 144 255
For example hsl(210, 100%, 56%)
Recent colors
Colors you pick appear here. They stay on this device.
By the Hex Color Picker Team. Updated
How to convert CMYK to hex
- Type the value as cmyk(0%, 64%, 80%, 9%) into the CMYK box.
- Copy the six-digit hex code from the hex box.
- Use it in CSS as color: #E8542E or background: #E8542E.
How the conversion works
The percentages are first turned into red, green and blue: each channel is 255 x (1 - ink) x (1 - K). For cmyk(0%, 64%, 80%, 9%) that gives rgb(232, 84, 46). Each channel is then written as two base-16 digits: 232 is E8, 84 is 54 and 46 is 2E. The code is #E8542E.
Matching a printed brand color
If the only specification you have is the CMYK mix from a print brief, this gives a sensible web equivalent for a website or a presentation. It won't be a perfect visual match, because a screen can't reproduce ink on paper exactly. Compare the converted color with a printed sample on a calibrated screen and adjust by eye if the match matters.
A worked contrast
- cmyk(100%, 100%, 0%, 0%) becomes #0000FF, a pure blue that looks far more vivid on screen than the ink does on paper.
- cmyk(0%, 0%, 0%, 100%) is #000000, but cmyk(75%, 68%, 67%, 90%), a common rich black, is #060808.
- Four zeros give #FFFFFF, since no ink means the white of the screen.
Using the hex code
The result works anywhere a hex color does. In CSS, write color: #E8542E; or background-color: #E8542E;. In design apps, paste it into the color field with or without the #. For a brand guide, record the CMYK mix and the hex code side by side, so the print and web versions of a color stay linked. If you later change either one, convert again here to keep them in step.
If the converted color looks duller or brighter than your printed sample, adjust the hex code by eye on a calibrated screen. A small manual tweak is normal and doesn't mean the conversion is wrong.
Common questions
Why did my CMYK to hex and back conversion change a digit?
CMYK is rounded to whole percentages, so one step of rounding can shift a channel by a value. The change is too small to see.
Does this use a color profile?
No. It uses the standard formula, with no ICC profile, which is how most web converters work.