hex to CMYK

This is the naive conversion every web tool uses. Real print output depends on paper, ink and an ICC profile, so treat it as a starting point.

Hue
Alpha
100%
CMYK
cmyk(73.1%, 44.9%, 0%, 3.9%)

Paste a hex value — other formats work too.

Need every format at once? Open in the full picker

Worked examples

Common colours converted from hex to CMYK, computed with the same engine the picker uses.

ColourhexCMYKCopy
Pure red#ff0000cmyk(0%, 100%, 100%, 0%)
Pure green#00ff00cmyk(100%, 0%, 100%, 0%)
Pure blue#0000ffcmyk(100%, 100%, 0%, 0%)
White#ffffffcmyk(0%, 0%, 0%, 0%)
Mid grey#808080cmyk(0%, 0%, 0%, 49.8%)
Black#000000cmyk(0%, 0%, 0%, 100%)
Interface blue#4287f5cmyk(73.1%, 44.9%, 0%, 3.9%)
Success green#22c55ecmyk(82.7%, 0%, 52.3%, 22.7%)
Danger red#ef4444cmyk(0%, 71.5%, 71.5%, 6.3%)
Warning amber#f59e0bcmyk(0%, 35.5%, 95.5%, 3.9%)
Editor black#1e1e1ecmyk(0%, 0%, 0%, 88.2%)
Warm sand#e9c46acmyk(0%, 15.9%, 54.5%, 8.6%)

How the conversion works

This is the naive conversion every web tool uses. Real print output depends on paper, ink and an ICC profile, so treat it as a starting point.

Both formats are computed from a single canonical representation — CIE XYZ with a D65 white point, held in floating point — rather than by chaining one format into the next. That matters because chained conversions accumulate rounding error, and because it means a colour that cannot be represented in the target format is handled deliberately rather than by accident.

When the source describes a colour outside the target's gamut, chroma is reduced in OKLCh while lightness and hue are held, following the CSS Color 4 gamut mapping algorithm. Clipping each channel independently would be simpler but visibly shifts hue on saturated colours.

Related conversions