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
CMYK input uses cyan, magenta, yellow, and black percentages from 0% through 100%.
The output is a six-digit CSS-style HEX value whose rounded 8-bit red, green, and blue channels are interpreted as sRGB.
The calculation is useful for digital approximation but cannot reproduce a specific press condition by itself.
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.
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
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
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.
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.
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.
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.
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
Convert HEX color codes into RGB color values.
Convert number base values.
Convert Base64 encoded data into hexadecimal values.
Convert hexadecimal values into Base64 encoded data.
Convert binary values into hexadecimal numbers.
Convert hexadecimal values into binary numbers.