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.
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.
| Color | Hex | CMYK |
|---|---|---|
| Black | #000000 | 0%, 0%, 0%, 100% |
| White | #FFFFFF | 0%, 0%, 0%, 0% |
| Red | #FF0000 | 0%, 100%, 100%, 0% |
| Lime | #00FF00 | 100%, 0%, 100%, 0% |
| Blue | #0000FF | 100%, 100%, 0%, 0% |
| Yellow | #FFFF00 | 0%, 0%, 100%, 0% |
| Cyan | #00FFFF | 100%, 0%, 0%, 0% |
| Magenta | #FF00FF | 0%, 100%, 0%, 0% |
| Silver | #C0C0C0 | 0%, 0%, 0%, 25% |
| Gray | #808080 | 0%, 0%, 0%, 50% |
| Maroon | #800000 | 0%, 100%, 100%, 50% |
| Olive | #808000 | 0%, 0%, 100%, 50% |
| Green | #008000 | 100%, 0%, 100%, 50% |
| Purple | #800080 | 0%, 100%, 0%, 50% |
| Teal | #008080 | 100%, 0%, 0%, 50% |
| Navy | #000080 | 100%, 100%, 0%, 50% |
| Orange | #FFA500 | 0%, 35%, 100%, 0% |
| Pink | #FFC0CB | 0%, 25%, 20%, 0% |
| Brown | #A52A2A | 0%, 75%, 75%, 35% |
| Gold | #FFD700 | 0%, 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.