About the CMYK Converter
CMYK Converter translates between the HEX colors used on screens and the cyan, magenta, yellow and key (black) percentages used in print. It works in both directions: type or pick a HEX color to get CMYK, or adjust the CMYK numbers and sliders to get a HEX code and live swatch.
How it works
From HEX, the red, green and blue values are scaled to 0-1. Black (K) is 1 minus the largest of the three. Each of cyan, magenta and yellow is then (1 - channel - K) / (1 - K), and all four are rounded to whole percentages. Pure black is a special case and returns 0%, 0%, 0%, 100%.
From CMYK, each RGB channel is 255 x (1 - C) x (1 - K), and likewise for magenta with green and yellow with blue, rounded and written as HEX. This is the standard, device-independent formula. It doesn't use an ICC color profile, so it can't account for the specific press, paper or ink a printer uses.
How to use
- 1
Type a HEX code, rgb() or hsl() value into the color field, or click the swatch to pick a color.
- 2
Read the Cyan, Magenta, Yellow and Key (Black) percentages that appear.
- 3
To go the other way, type numbers from 0 to 100 into the CMYK fields or drag the four sliders.
- 4
Copy the CMYK, HEX, RGB or HSL value with the copy icon on its row.
Worked examples
Web blue to print
Converting the default blue for a printed flyer.
Blue is the strongest channel (246), so K = 1 - 246/255 ≈ 4%. Cyan and magenta make up the rest.
Bright orange
A brand orange needs print values.
CMYK from a print guide to HEX
A brand book lists a lime green as C20 M0 Y60 K10.
Red = 255 x 0.8 x 0.9 ≈ 184 (B8), green = 255 x 1 x 0.9 ≈ 230 (E6), blue = 255 x 0.4 x 0.9 ≈ 92 (5C).
Frequently asked questions
Why is CMYK used for print instead of RGB?+
Printers make color by layering inks that absorb light (subtractive color), while screens mix light (additive color). CMYK describes how much of each ink to lay down.
Will the printed color exactly match what I see on screen?+
Not always. This is a formula-based approximation, and actual results depend on the printer, paper, ink and color profile used.
What does the K in CMYK stand for?+
Key, meaning the black plate. Black ink is added because mixing cyan, magenta and yellow alone gives a muddy dark brown rather than a true black.
Can I convert Pantone colors with this?+
No. Pantone spot colors are specific premixed inks, and their official CMYK and HEX equivalents come from Pantone's own guides.
Why did my HEX code change slightly after I edited a CMYK value?+
CMYK is stored as whole percentages, so recalculating HEX from rounded values can shift each channel by a few points.