CMYK to HEX Converter

Turn cyan, magenta, yellow, and black percentages into an approximate sRGB HEX color for digital previews, CSS palettes, and handoff references.

Last updated: August 2026 | By Workshelve Team

C
M
Y
K

Four print channels

CMYK input uses cyan, magenta, yellow, and black percentages from 0% through 100%.

CSS HEX is the sRGB target

The output is a six-digit CSS-style HEX value whose rounded 8-bit red, green, and blue channels are interpreted as sRGB.

A preview, not a proof

The calculation is useful for digital approximation but cannot reproduce a specific press condition by itself.

From CMYK Percentages to a HEX Color

This direction starts with four percentages rather than an RGB color code. Each CMYK channel is divided by 100, then combined with black to estimate how much red, green, and blue light remains in a digital representation of the color.

The calculator uses R = 255 × (1 − C) × (1 − K), with equivalent equations for green using M and blue using Y. The resulting RGB channels are rounded to whole values from 0 through 255 because a six-digit HEX color stores one 8-bit value per channel.

Finally, each RGB channel is encoded as a two-character hexadecimal pair and combined in #RRGGBB order. This gives a convenient digital approximation for web or interface work, but CMYK percentages alone do not contain the ICC profile or physical printing conditions needed for a color-managed press match.

How the CMYK to HEX Calculation Works

C′ = C / 100, M′ = M / 100, Y′ = Y / 100, K′ = K / 100

R = round(255 × (1 − C′) × (1 − K′))

G = round(255 × (1 − M′) × (1 − K′))

B = round(255 × (1 − Y′) × (1 − K′))

HEX = #RRGGBB after converting R, G, and B to two-digit base-16 pairs

CMYK to HEX Examples

C 100% · M 0% · Y 0% · K 0%
#00FFFF
C 0% · M 100% · Y 100% · K 0%
#FF0000
C 0% · M 0% · Y 0% · K 50%
#808080
C 75% · M 25% · Y 0% · K 10%
#39ACE6

Worked example: C 25%, M 0%, Y 50%, K 20%

R = round(255 × 0.75 × 0.80) = 153 → 99

G = round(255 × 1.00 × 0.80) = 204 → CC

B = round(255 × 0.50 × 0.80) = 102 → 66

C 25% · M 0% · Y 50% · K 20% → #99CC66

CMYK to HEX FAQ

What range can I enter for C, M, Y, and K?

Each channel accepts decimal values from 0% through 100%, inclusive. Empty fields, non-numeric values, and percentages outside that range are rejected instead of being silently clamped.

Why does 50% black become #808080 instead of #7F7F7F?

With C, M, and Y at 0%, the formula gives 255 × 0.5 = 127.5 for every RGB channel. This calculator rounds to the nearest 8-bit integer, producing 128, which is hexadecimal 80.

What happens when K is 100%?

The factor (1 − K′) becomes zero, so red, green, and blue all calculate to zero regardless of C, M, and Y. The resulting HEX color is #000000.

Can a CMYK value map to more than one real printed appearance?

Yes. The same four percentages can reproduce differently across printing systems because inks, media, profiles, and output conditions differ. This calculator only creates the mathematical digital approximation.

Why might converting CMYK to HEX and back not return the exact same percentages?

CMYK-to-HEX reduces the result to three rounded 8-bit RGB channels. That quantization, plus the fact that RGB and CMYK representations are not a one-to-one profile-independent pair, means a reverse calculation can produce different CMYK percentages.

Related Tools