CMYK to HEX Converter

Convert simple CMYK percentage values to an approximate RGB and HEX screen color.

← Image & Design

Convert simple CMYK percentage values to an approximate RGB and HEX screen color.

ColorCMYK → RGBBrowser calculation

Result: Enter CMYK percentages.

How to convert CMYK percentages

  1. Enter Cyan, Magenta, Yellow and Black (Key) as percentages from 0 to 100. Decimals are allowed; enter 25 for 25%, not 0.25.
  2. Read the approximate HEX code, RGB channels and color preview. Valid input changes update the result immediately.
  3. Choose Copy HEX to copy the six-digit code, including its leading #, for a web design or mockup. Reset clears the result and restores all inputs to zero.

Formula used

Convert each percentage to a fraction by dividing by 100, then calculate:

  • R = round(255 × (1 − C) × (1 − K))
  • G = round(255 × (1 − M) × (1 − K))
  • B = round(255 × (1 − Y) × (1 − K))

The three rounded channels are encoded as two hexadecimal digits each, in red-green-blue order. For C = 20%, M = 40%, Y = 0% and K = 25%, the channels are 153, 115 and 191, giving #9973BF.

Simple conversion examples

Results from this formula, not measured print colors
CMYK percentages (C, M, Y, K)HEXRGB
0, 0, 0, 0#FFFFFF255, 255, 255
100, 0, 0, 0#00FFFF0, 255, 255
0, 100, 100, 0#FF0000255, 0, 0
0, 0, 0, 100#0000000, 0, 0

Why the preview may differ from print

This is a simple mathematical approximation; it does not read or apply an ICC profile. Ink, paper and printing conditions affect the appearance of a CMYK value. A HEX value describes a screen color, so this preview is not a proof of how a printed job will look. Use the printer’s recommended profile and a color-managed application for production work. The International Color Consortium explains how device profiles support color conversion.

Common questions

Why does another converter give a different HEX code?

It may use a different profile, rendering method or rounding rule. Compare the conversion settings before treating either value as the correct print match.

Can I recover the original CMYK from HEX?

Not uniquely. Different CMYK combinations can produce the same RGB result in this formula. For example, any input with K = 100% produces black here.

Does Copy HEX include transparency?

No. The output is an opaque six-digit RGB color. Use the HEX to RGB Converter to inspect a HEX code, or the RGB Color Generator to adjust screen-color channels directly.

Related tools