Using the converter
Paste a hex code such as #FF8800, with or without the #. The CMYK values appear as you type, as whole percentages ready for a print form, and the working below shows how each one was found.
The box also takes rgb(), hsl() and CSS names like teal, so you can start from whatever you have. Nothing you type leaves the page.
How the conversion works
First the hex code becomes three numbers from 0 to 255, two hex digits each. Divide each by 255 so it runs from 0 to 1. Black is 1 minus the largest of the three, so a color with a channel at full needs no black at all.
Each ink is then (1 − channel − black) ÷ (1 − black). For #FF8800, red is 1, green 0.533 and blue 0. Black is 0, cyan is 0, magenta is 1 − 0.533 = 0.467 and yellow is 1, so cmyk(0%, 47%, 100%, 0%).
Why the printer may not match
Screens make color by adding light. Printers take it away, laying four inks over white paper. The two can't reach all the same colors, so a bright screen orange or electric blue often prints duller.
The formula here is the simple one that knows nothing about your paper or press. It is the "naive" conversion the CSS Color specification describes for colors without a profile. A print shop uses an ICC color profile for its own press instead, and the numbers it picks will differ a little, especially in deep blacks. Use these values as a starting point, and ask the printer for a proof when the color really matters.
What the K means
K is black. Printers call the black plate the key plate, because it carries the fine detail and text the other colors line up to. Black ink is used instead of mixing all three colors because a mix of the three color inks comes out a muddy brown, uses three times the ink and takes longer to dry.
Questions
What is #000000 in CMYK?
cmyk(0%, 0%, 0%, 100%), black ink only. Printers sometimes add other inks under it for a deeper "rich black", but that comes from their profile, not this formula.
What is #FFFFFF in CMYK?
cmyk(0%, 0%, 0%, 0%), no ink at all. White comes from the paper.
Can I convert back?
Yes. Swap the boxes, or use the CMYK to hex page.
Sources
- W3C: CSS Color Module Level 5, naively converting between uncalibrated CMYK and sRGB
- Wikipedia: CMYK color model
Added . Last updated and reviewed . What's new






