CMYK to Hex Converter: CMYK to Hex Code
Convert C, M, Y, K values to a hex color code, live as you type.
Updates live as you type. This is a device-independent approximation — a real print CMYK value's on-screen 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? Hex to CMYK Converter: Hex Color Code to CMYK
What is CMYK to Hex Converter: CMYK to Hex Code?
This CMYK to hex converter turns a CMYK (Cyan, Magenta, Yellow, Key/black) print color into a hex code, with a live color swatch. Use it to change C, M, Y, K values into a hex color code when a brand guideline or print spec only lists CMYK values and you need the same color as a hex code for CSS, a design tool, or a web mockup. This uses the standard device-independent formula for converting subtractive (print) color to a screen-representable hex value. It's a close visual approximation, not an exact color match. Real print output depends on your printer and paper's own ICC color profile, which this conversion has no way to account for. Everything runs entirely in your browser; nothing you enter is sent to a server.
CMYK to Hex Reference Table
| CMYK | Hex |
|---|---|
| 0, 0, 0, 100 | #000000 |
| 0, 0, 0, 0 | #FFFFFF |
| 0, 100, 100, 0 | #FF0000 |
| 100, 0, 100, 50 | #008000 |
| 100, 100, 0, 0 | #0000FF |
| 100, 0, 0, 0 | #00FFFF |
| 0, 100, 0, 0 | #FF00FF |
| 0, 0, 100, 0 | #FFFF00 |
How to Use the CMYK to Hex Converter
- 1
Enter C, M, Y, and K: Type percentages from 0 to 100 for each channel.
- 2
Read the Hex Result Instantly: The hex code and a live swatch appear automatically.
- 3
Copy the Result: Use the copy button to copy the hex code for CSS or a mockup.
CMYK to Hex Conversion Formula
CMYK to hex goes through RGB first: R = 255 × (1−C) × (1−K), G = 255 × (1−M) × (1−K), B = 255 × (1−Y) × (1−K), with C, M, Y, K as 0–1 fractions of the entered percentages. Each resulting R/G/B value (0–255) is then encoded as a two-digit base-16 number and joined into the hex string. This is the same subtractive-color math used by CMYK to RGB Converter. Hex is just RGB written in another base, so converting CMYK to hex and CMYK to RGB always agree with each other.
How to Convert CMYK to Hex
Worked example: pure print red, C=0 M=100 Y=100 K=0. R = 255 × (1−0) × (1−0) = 255 G = 255 × (1−1) × (1−0) = 0 B = 255 × (1−1) × (1−0) = 0 RGB(255, 0, 0) encodes as hex #FF0000.
Frequently Asked Questions
Common questions about CMYK to Hex Converter: CMYK to Hex Code.