HEX to CMYK
Convert a HEX colour code to CMYK values instantly. See Cyan, Magenta, Yellow and Black percentages with a live colour preview.
HEX to CMYK converts any web hex colour code into the four ink percentages used in print and graphic design: Cyan (C), Magenta (M), Yellow (Y) and Black (K). Enter any valid hex value and the result updates instantly in your browser — nothing is sent to a server.
What is CMYK?
CMYK is a subtractive colour model used in colour printing. Unlike RGB, which adds light to produce colours on screens, CMYK works by layering inks that each absorb (subtract) certain wavelengths of light. A professional printer mixes these four ink channels to reproduce nearly any colour on paper.
- Cyan absorbs red light
- Magenta absorbs green light
- Yellow absorbs blue light
- Key (Black) adds depth and sharpness; using a separate black ink is more economical than mixing C, M and Y to approximate black
How the conversion works
Given a hex colour such as #3b82f6:
- The hex is split into three 8-bit values: R = 59, G = 130, B = 246
- Each channel is normalised to the range 0–1
- The Black key is calculated as
K = 1 − max(R′, G′, B′) - The three ink channels follow as
C = (1 − R′ − K) / (1 − K), and similarly for M and Y - Each result is multiplied by 100 and rounded to the nearest integer percentage
When would you use this tool?
You have a brand colour defined in HEX for web use and need to hand off exact CMYK values to a print vendor. Or you are building a design system that must look consistent across both digital and physical output. Converting from HEX gives you a solid starting point — bear in mind that professional print workflows may apply ICC colour profiles and soft-proofing on top of these raw values.
Limitations
The conversion is a mathematical approximation based on the sRGB colour space. Physical ink and paper introduce variables such as ink gain, substrate colour and metamerism that can cause the printed result to differ visually from the on-screen swatch. For critical print work always request a physical proof from your printer.
FAQ
Can I paste rgb() or hsl() values instead of a hex code?
The input field accepts #rgb short-form and #rrggbb long-form hex only. To convert from rgb() or hsl(), use the Color Converter tool first to get the hex equivalent, then paste it here.
Why does pure black (#000000) give C=0 M=0 Y=0 K=100?
When all RGB channels are zero, the max channel is also zero, so K reaches its maximum of 100 % and the CMY channels collapse to zero. This is the mathematically correct result — a pure black that uses only the Key ink.
Why does pure white (#ffffff) give all zeros?
White reflects all wavelengths, meaning no ink is needed. All four CMYK channels are 0 %, which is correct.
Is the CMYK string safe to paste into Adobe Illustrator?
Illustrator accepts CMYK values as percentages in its colour panel. You can enter the C, M, Y and K numbers directly. The cmyk() string format is not natively recognised by most design apps, but copying each channel value works perfectly in all major tools.