Hex to CMYK Converter: Hex Color Code to CMYK
Convert a hex color code to CMYK values for print, live as you type.
Updates live as you type. This is a device-independent approximation — a real print CMYK value's appearance depends on the printer/paper's own ICC color profile, so treat this as a preview, not exact color matching. Runs entirely in your browser.
Need the opposite? CMYK to Hex Converter: CMYK to Hex Code
What is Hex to CMYK Converter: Hex Color Code to CMYK?
This hex to CMYK converter turns a hex color code into its CMYK (Cyan, Magenta, Yellow, Key/black) print equivalent, with a live color swatch. Use it to find a hex color in CMYK when you have a brand color as a hex code (from CSS, a design file, or a style guide) and need the CMYK values for a print vendor, business card, or packaging spec. This uses the standard device-independent formula for converting a screen hex value into subtractive (print) color percentages. Treat the result as a starting point for a print job, not a guarantee. Real print output depends on your printer and paper's own ICC color profile, which no hex-based formula can fully replicate. Everything runs entirely in your browser; nothing you enter is sent to a server.
Hex to CMYK Reference Table
| Hex | CMYK |
|---|---|
| #000000 | 0, 0, 0, 100 |
| #FFFFFF | 0, 0, 0, 0 |
| #FF0000 | 0, 100, 100, 0 |
| #008000 | 100, 0, 100, 50 |
| #0000FF | 100, 100, 0, 0 |
| #00FFFF | 100, 0, 0, 0 |
| #FF00FF | 0, 100, 0, 0 |
| #FFFF00 | 0, 0, 100, 0 |
How to Use the Hex to CMYK Converter
- 1
Enter the Hex Code: Type a 6-digit hex color, with or without the leading #.
- 2
Read the CMYK Result Instantly: The CMYK percentages and a live swatch appear automatically.
- 3
Copy the Result: Use the copy button to copy the CMYK values for a print spec.
Hex to CMYK Conversion Formula
Hex to CMYK is a two-step conversion: first the hex code is decoded into R, G, B (0–255) by splitting it into three two-digit base-16 pairs, then each channel is run through the standard RGB-to-CMYK subtractive-color formula: K = 1 − max(R/255, G/255, B/255), C = (1−R/255−K) / (1−K), M = (1−G/255−K) / (1−K), Y = (1−B/255−K) / (1−K). This is the reverse of the math used by CMYK to Hex Converter, and the two tools always agree with each other on the same color.
How to Convert Hex to CMYK
Worked example: #0000FF (pure blue, RGB 0, 0, 255). K = 1 − max(0, 0, 1) = 0 C = (1 − 0 − 0) / 1 = 1 → 100% M = (1 − 0 − 0) / 1 = 1 → 100% Y = (1 − 1 − 0) / 1 = 0 → 0% Result: C=100, M=100, Y=0, K=0.
Frequently Asked Questions
Common questions about Hex to CMYK Converter: Hex Color Code to CMYK.