CMYK to HEX Converter

CMYK in, HEX color code out — with the working shown.

To convert CMYK to HEX, normalise the input, convert CMYK back to RGB, write out the HEX value, then check the gamut. For example, cmyk(81% 47.8% 0% 3.1%) in CMYK is #2f81f7 in HEX.

This is a free CMYK to HEX converter. Type or paste any cyan, magenta, yellow and key (black) ink percentages into the field above and the HEX value updates as you type, along with every other notation the web understands. HEX is a six-digit hexadecimal number, two digits per channel, written with a leading #.

Conversions run entirely in your browser using the same color engine as the rest of the site: values round-trip through linear sRGB and CIE XYZ rather than through an approximation, so what you copy is accurate to the last digit the format can carry.

How to convert CMYK to HEX

  1. Normalise the input. Read the CMYK value and scale each component into the 0–1 range the maths expects.
  2. Convert CMYK back to RGB. CMYK is not the display's native model, so the first move is always back to red, green and blue.
  3. Write out the HEX value. Convert back through sRGB and format the result as HEX.
  4. Check the gamut. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get.

Worked example: cmyk(81% 47.8% 0% 3.1%) converts to #2f81f7. That color is Dodger Blue, and the tool above shows each intermediate step for whatever value you enter.

Common CMYK to HEX values

The twenty colors people look up most often, converted from CMYK to HEX. Every row is computed by the same engine as the tool above.

ColorCMYKHEX
Whitecmyk(0% 0% 0% 0%)#ffffff
Blackcmyk(0% 0% 0% 100%)#000000
Redcmyk(0% 100% 100% 0%)#ff0000
Limecmyk(100% 0% 100% 0%)#00ff00
Bluecmyk(100% 100% 0% 0%)#0000ff
Yellowcmyk(0% 0% 100% 0%)#ffff00
Cyancmyk(100% 0% 0% 0%)#00ffff
Magentacmyk(0% 100% 0% 0%)#ff00ff
Silvercmyk(0% 0% 0% 24.7%)#c0c0c0
Graycmyk(0% 0% 0% 49.8%)#808080
Marooncmyk(0% 100% 100% 49.8%)#800000
Olivecmyk(0% 0% 100% 49.8%)#808000
Greencmyk(100% 0% 100% 49.8%)#008000
Purplecmyk(0% 100% 0% 49.8%)#800080
Tealcmyk(100% 0% 0% 49.8%)#008080
Navycmyk(100% 100% 0% 49.8%)#000080
Orangecmyk(0% 35.3% 100% 0%)#ffa500
Pinkcmyk(0% 24.7% 20.4% 0%)#ffc0cb
Goldcmyk(0% 15.7% 100% 0%)#ffd700
Crimsoncmyk(0% 90.9% 72.7% 13.7%)#dc143c

CMYK and HEX, briefly

CMYK is four subtractive ink percentages used for print. Valid range: 0–100% per plate.

HEX is a six-digit hexadecimal number, two digits per channel, written with a leading #. Valid range: #000000 to #ffffff.

A note on CMYK: these values come from the standard naive formula with no ICC profile attached. They are indicative and useful for a mockup. For anything going on a press, get a printed proof on the actual stock — no formula substitutes for that.

Frequently asked questions

How do you convert CMYK to HEX?

1. Read the CMYK value and scale each component into the 0–1 range the maths expects. 2. CMYK is not the display's native model, so the first move is always back to red, green and blue. 3. Convert back through sRGB and format the result as HEX. 4. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get. The converter on this page does all of it as you type, and shows the working underneath.

What is cmyk(0% 100% 100% 0%) in HEX?

Pure red, cmyk(0% 100% 100% 0%), is #ff0000 in HEX. There is a table of twenty common colors converted to HEX further up this page.

What is cmyk(81% 47.8% 0% 3.1%) in HEX?

cmyk(81% 47.8% 0% 3.1%) converts to #2f81f7. It is a dodger blue, and you can paste any other value into the field at the top of the page to convert it.

Is CMYK to HEX conversion lossless?

No. CMYK describes ink on paper and has no meaning without an ICC profile for a specific press, paper and ink set. The values here use the standard naive formula, which is fine for a mockup and should not be sent to a printer as-is — get a proof instead.

Can I use HEX directly in CSS?

Yes. #2f81f7 is valid CSS and works in every current browser.

Does this CMYK to HEX converter support transparency?

Alpha is preserved wherever the target notation can carry it — eight-digit hex, rgb() / a, hsl() / a and the modern CSS spaces all round-trip an alpha channel. CMYK has no alpha, so it is dropped there.

Is my color data sent anywhere?

No. Every conversion on this site runs in your browser with no network request, no account and no analytics. You can disconnect and it keeps working.