CMYK to Hex Converter
Convert CMYK print color values to hex codes for use on the web. Enter your cyan, magenta, yellow, and key (black) percentages and get the equivalent hex color code.
Convert CMYK to HEX
#EFBF04
Also available in
| Code | Value | HTML/CSS | |
|---|---|---|---|
| RGB | 239, 191, 4 | rgb(239 191 4) | |
| HSL | 48, 97, 48 | hsl(48 97% 48%) | |
| HSV | 48, 98, 94 | — | |
| OKLCH | 0.82, 0.17, 90 | oklch(0.82 0.17 90) |
Use this color in Moda
Apply exact brand colors to slides, social posts, and other designs — all on a real canvas you control.
Try Moda free →How to convert CMYK to hex
First, convert CMYK percentages to RGB: R = 255 × (1 − C/100) × (1 − K/100), and similarly for G (using M) and B (using Y). Then convert each RGB channel to a two-digit hexadecimal number and concatenate them. For example, if R=171, the hex pair is "AB" because 171 = 10×16 + 11, and A=10, B=11 in hexadecimal.
When to use CMYK vs hex
CMYK is the standard for print; hex is the standard for screens. You will typically need to convert CMYK to hex when bringing a brand color from print materials to a website. For instance, if your brand guidelines define a primary color as CMYK(100, 50, 0, 0) and you need to use it in a CSS stylesheet, this tool gives you the hex equivalent.
Worked example
Convert CMYK(0, 100, 100, 0) to hex: 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) → hex FF, 00, 00 → #FF0000. This is pure red.
Screen vs print color differences
A color defined in CMYK for print may not look identical on screen after conversion to hex. Screens use light (additive mixing) while printers use ink (subtractive mixing), so there will always be some perceptual difference. The mathematical conversion is exact, but the physical rendering varies by device.
Frequently asked questions
How do I convert CMYK to hex?
CMYK values are first converted to RGB using the formula R = 255 × (1-C) × (1-K), and similarly for G and B. The resulting RGB values are then converted to a hexadecimal string.
Will the hex color look exactly like the printed CMYK color?
Not necessarily. Screen colors (hex/RGB) and print colors (CMYK) use different color models. The mathematical conversion is an approximation — the on-screen preview may differ slightly from the printed result.
When do I need to convert CMYK to hex?
When you have a brand color defined in CMYK for print materials and need to use it on a website or in digital designs. Converting to hex gives you the closest screen representation.