Skip to the content

HEX to CMYK Converter

Estimate CMYK percentages for a HEX color code with the standard formula, as a starting point for print work.

With or without the #. Three digits work too.

In CMYK

cmyk(25%, 75%, 0%, 20%)

Hue
280°Alpha
100%

In the other notations

Name

darkorchidexact match

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

HEX to CMYK by hand

The converter opens with #9932cc. This is how that color gets from HEX to CMYK, step by step.

  1. Read the three pairs of #9932cc as numbers in base 16, where the first digit counts sixteen times: 99 is 9 × 16 + 9 = 153, 32 is 3 × 16 + 2 = 50 and cc is 12 × 16 + 12 = 204. Those are the red, green and blue values.
  2. Divide each value by 255, so that it runs from 0 to 1: 153 ÷ 255 = 0.6, 50 ÷ 255 = 0.1961 and 204 ÷ 255 = 0.8.
  3. Black is what the largest of the three still lacks: K = 1 − 0.8 = 0.2.
  4. The other inks cover what is missing in each channel, as a share of what black leaves over, 1 − K = 0.8: C = (1 − 0.6 − 0.2) ÷ 0.8 = 0.25, M = (1 − 0.1961 − 0.2) ÷ 0.8 = 0.7549 and Y = (1 − 0.8 − 0.2) ÷ 0.8 = 0.
  5. In whole percentages: cmyk(25%, 75%, 0%, 20%).

Well-known colors in HEX and CMYK

ColorHEXCMYK
black#000000cmyk(0%, 0%, 0%, 100%)
white#ffffffcmyk(0%, 0%, 0%, 0%)
gray#808080cmyk(0%, 0%, 0%, 50%)
red#ff0000cmyk(0%, 100%, 100%, 0%)
orange#ffa500cmyk(0%, 35%, 100%, 0%)
yellow#ffff00cmyk(0%, 0%, 100%, 0%)
lime#00ff00cmyk(100%, 0%, 100%, 0%)
green#008000cmyk(100%, 0%, 100%, 50%)
cyan#00ffffcmyk(100%, 0%, 0%, 0%)
blue#0000ffcmyk(100%, 100%, 0%, 0%)
purple#800080cmyk(0%, 100%, 0%, 50%)
magenta#ff00ffcmyk(0%, 100%, 0%, 0%)

An estimate, not a print specification

  • A HEX code describes light on a screen and CMYK describes ink on paper. The formula connects the two as if ink were perfect. A print shop uses a color profile for its own press and paper, and arrives at other percentages.
  • If the color has to match in print, convert it in a design program that has the printer's profile, or choose it from a printed swatch book.
  • The result is in whole percentages, which is coarser than a HEX code. Neighboring codes share one result: #9933cc gives the same four percentages as this example.
  • A code with a fourth pair of digits loses its opacity here. Ink has no transparency to set.

The color converter shows a color in all seven notations at once, with a picker to choose it by eye.

See all 8