Using the converter
Type the four ink amounts in order, cyan, magenta, yellow and black, such as 0, 47, 100, 0. Percent signs are optional, and cmyk(0%, 47%, 100%, 0%) works too.
Values from 0 to 1, as CSS writes them, also work. If any value is over 1 the four are read as percentages.
The CMYK to RGB formula
Each screen channel is 255 × (1 − (ink × (1 − K) + K)), with cyan for red, magenta for green and yellow for blue. Black darkens all three. Each ink takes away its opposite colour of light.
For cmyk(0%, 47%, 100%, 0%), red is 255 × 1 = 255, green 255 × 0.53 = 135 and blue 0, so #FF8700. Rounding the percentages loses a little, so a colour that went to CMYK and back can come out one step off.
Why the printer may not match
Screens make colour by adding light. Printers take it away, laying four inks over white paper. The two can't reach all the same colours, 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 colours without a profile. A print shop uses an ICC colour 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 colour really matters.
Questions
Will the hex code look like my printed sample?
Roughly. The real colour of a print depends on the paper and inks, which this formula doesn't know about.
What is cmyk(100, 0, 0, 0)?
#00FFFF, pure cyan on screen. Real cyan ink is a little darker than that.
Sources
- W3C: CSS Color Module Level 5, naively converting between uncalibrated CMYK and sRGB
- Wikipedia: CMYK color model
Added and reviewed . What's new






