Hex to CMYK Converter
Convert a hex color code into CMYK percentages for print — the cyan, magenta, yellow, and black values your printer or press software expects.
How Hex to CMYK Conversion Works
CMYK is the print color model — subtractive, where cyan, magenta, yellow, and black ink layers absorb light off a white page, unlike RGB's additive model where red, green, and blue light combine on a screen. Converting hex to CMYK first passes through RGB, then derives the black channel from the darkest of the three channels before scaling the remaining cyan, magenta, and yellow values against it.
Hex to CMYK Example, Step by Step
#2563EB = cmyk(84%, 58%, 0%, 8%)
#2563EB (hex) = cmyk(84%, 58%, 0%, 8%)
#2563EB -> rgb(37, 99, 235) Scale to 0-1: R=0.145, G=0.388, B=0.922 K = 1 - max(R,G,B) = 1 - 0.922 = 0.078 -> 8% C = (1 - R - K) / (1 - K) = 0.837 -> 84% M = (1 - G - K) / (1 - K) = 0.581 -> 58% Y = (1 - B - K) / (1 - K) = 0.0 -> 0%
| Step | Description | Result |
|---|---|---|
| Convert hex to RGB | #2563EB -> rgb(37, 99, 235) | R=37 G=99 B=235 |
| Scale channels to 0-1 | divide each by 255 | 0.145, 0.388, 0.922 |
| Compute K (black) | 1 - max(R,G,B) | K = 8% |
| Compute C, M, Y | scale remaining channels against 1-K | C=84%, M=58%, Y=0% |
The channel with the highest RGB value always ends up with 0% in its matching CMY position — here blue is highest, so yellow (blue's opposite) is exactly 0%.
Common Mistakes With Hex to CMYK
- Assuming CMYK is a fixed, universal standard — actual print output varies by printer, ink, and paper profile, so this is a mathematical approximation, not a color-managed print value.
- Forgetting to compute K first — C, M, and Y all depend on it, so order matters.
- Using CMYK values directly in CSS or web design, where only RGB and hex are meaningful.
Frequently Asked Questions
How do you convert hex to CMYK?
First convert hex to RGB and scale each channel to 0-1. Black (K) is 1 minus the largest of the three. Cyan, magenta, and yellow are then derived from how far each channel falls short of that maximum, divided by the remaining range.
What's the CMYK value of #2563EB?
cmyk(84%, 58%, 0%, 8%) — blue-heavy RGB colors typically produce low yellow and high cyan.
Why does CMYK have a fourth channel that RGB doesn't?
K (key/black) exists because mixing cyan, magenta, and yellow ink alone produces a muddy dark brown, not true black. Adding a dedicated black ink gives cleaner shadows and saves colored ink on large dark areas.
Is CMYK additive or subtractive?
Subtractive. RGB starts from black and adds light to reach white (screens emit light), while CMYK starts from white paper and subtracts light by layering ink — more ink means darker, not brighter.
Should I use CMYK values for a website or app?
No — browsers and screens use RGB and hex. CMYK is only relevant when preparing artwork for physical printing.