CMYK to Hex Converter

Enter cyan, magenta, yellow and black percentages to get the hex code for the web. Click any result to copy it.

How to convert CMYK to hex

Multiply 255 by the share of each ink that is missing, then by the share of black that is missing. That gives the red, green and blue values, which you write as hex pairs.

cmyk(30%, 0%, 73%, 3%)
R = 255 × (1 − 0.30) × (1 − 0.03) = 173.1, rounds to 173
G = 255 × (1 − 0.00) × (1 − 0.03) = 247.3, rounds to 247
B = 255 × (1 − 0.73) × (1 − 0.03) = 66.8, rounds to 67
Result: rgb(173, 247, 67) = #ADF743

Why the round trip is not exact

That example started life as #ACF742, but CMYK whole percentages are coarser than hex, so it comes back as #ADF743. The two are too close to tell apart, but it is why converting back and forth can drift a little.

Screen and print colors

CMYK values from a print file describe ink on paper. Converting them with this formula gives a close screen match, not the exact printed result, because every press and paper stock prints a little differently.

Common CMYK colors in hex

Select a color name for its full page, or use Load to try it in the converter.

ColorHexCMYKLoad into the converter
Black#0000000%, 0%, 0%, 100%
White#FFFFFF0%, 0%, 0%, 0%
Red#FF00000%, 100%, 100%, 0%
Lime#00FF00100%, 0%, 100%, 0%
Blue#0000FF100%, 100%, 0%, 0%
Yellow#FFFF000%, 0%, 100%, 0%
Cyan#00FFFF100%, 0%, 0%, 0%
Magenta#FF00FF0%, 100%, 0%, 0%
Silver#C0C0C00%, 0%, 0%, 25%
Gray#8080800%, 0%, 0%, 50%
Maroon#8000000%, 100%, 100%, 50%
Olive#8080000%, 0%, 100%, 50%
Green#008000100%, 0%, 100%, 50%
Purple#8000800%, 100%, 0%, 50%
Teal#008080100%, 0%, 0%, 50%
Navy#000080100%, 100%, 0%, 50%
Orange#FFA5000%, 35%, 100%, 0%
Pink#FFC0CB0%, 25%, 20%, 0%
Brown#A52A2A0%, 75%, 75%, 35%
Gold#FFD7000%, 16%, 100%, 0%

CMYK to hex questions

What is 0, 0, 0, 0 in hex?

No ink at all, which is white: #FFFFFF. 0%, 0%, 0%, 100% is black, #000000.

How do I get the CMYK for a web color?

Go the other way with the hex to CMYK converter. Need RGB numbers instead of hex? The hex to RGB converter has them.