Converter

HEX to CMYK Converter

Convert a HEX colour code to CMYK ink percentages in one step. Paste a hex code below and the four process ink values appear immediately, laid out the way a press control strip shows them.

or pick it visually
Preview

C
M
Y
K
SUM
CMYK
HEX
RGB
HSL

Need it the other way round?CMYK to HEX converter

These values are mathematical approximations. Ink, paper, press calibration and colour profile all change the printed result — always approve colour from a physical proof. Full disclaimer.

How do you convert HEX to CMYK?

To convert HEX to CMYK, read the hex code as three RGB values, divide each by 255, then set K to 1 minus the largest of the three. Each remaining ink is (1 − channel − K) divided by (1 − K). Multiply all four by 100 for percentages. For example, #1E90FF converts to C 88, M 44, Y 0, K 0.

The HEX to CMYK formula #

HEX describes light leaving a screen. CMYK describes ink absorbing light on paper. The conversion works by asking how much light the colour is missing altogether, calling that the black ink, then working out how much of each coloured ink is needed on top.

// step 1: hex to RGB, then normalise to a 0–1 range r = R / 255   g = G / 255   b = B / 255   // step 2: the black ink K = 1 − max(r, g, b)   // step 3: the three chromatic inks C = (1 − r − K) / (1 − K) M = (1 − g − K) / (1 − K) Y = (1 − b − K) / (1 − K)   // if K = 1 the colour is black: C, M and Y are all 0

The division by 1 − K is the step people miss. Without it you would be asking the coloured inks to do work the black ink has already done, and every dark colour would come out far too heavy.

A worked example, step by step #

Take #1E90FF, a mid blue, and convert HEX to CMYK by hand.

  1. Split the code into pairs: 1E, 90, FF.
  2. Read each pair as base 16: R = 30, G = 144, B = 255.
  3. Normalise: r = 0.118, g = 0.565, b = 1.0.
  4. The largest is 1.0, so K = 1 − 1.0 = 0. No black ink.
  5. With K at zero the denominator is 1, so the sums simplify: C = 1 − 0.118 = 0.882, M = 1 − 0.565 = 0.435, Y = 1 − 1.0 = 0.
  6. As percentages: C 88, M 44, Y 0, K 0. Total ink coverage 132%.
Worth knowing

That blue is a good example of a colour that looks fine on screen and disappointing in print. It sits outside what four process inks can reach, so the press will produce something duller and slightly greyer. Nothing is wrong with your file when that happens — it is a limit of the medium. Here is why, in more detail.

HEX to CMYK chart: 40 common colours #

Forty colours people convert often, calculated with the formula above. Click any row to load it into the converter.

ColourHEXCMYKInk
Black#0000000, 0, 0, 100100%
White#FFFFFF0, 0, 0, 00%
Red#FF00000, 100, 100, 0200%
Lime#00FF00100, 0, 100, 0200%
Blue#0000FF100, 100, 0, 0200%
Yellow#FFFF000, 0, 100, 0100%
Cyan#00FFFF100, 0, 0, 0100%
Magenta#FF00FF0, 100, 0, 0100%
Dodger blue#1E90FF88, 44, 0, 0132%
Navy#000080100, 100, 0, 50250%
Teal#008080100, 0, 0, 50150%
Forest green#228B2276, 0, 76, 45197%
Olive#8080000, 0, 100, 50150%
Orange#FFA5000, 35, 100, 0135%
Crimson#DC143C0, 91, 73, 14178%
Maroon#8000000, 100, 100, 50250%
Purple#8000800, 100, 0, 50150%
Hot pink#FF69B40, 59, 29, 088%
Silver#C0C0C00, 0, 0, 2525%
Charcoal#36454F32, 13, 0, 69114%
Gold#FFD7000, 16, 100, 0116%
Coral#FF7F500, 50, 69, 0119%
Salmon#FA80720, 49, 54, 2105%
Tomato#FF63470, 61, 72, 0133%
Chocolate#D2691E0, 50, 86, 18154%
Sienna#A0522D0, 49, 72, 37158%
Beige#F5F5DC0, 0, 10, 414%
Ivory#FFFFF00, 0, 6, 06%
Khaki#F0E68C0, 4, 42, 652%
Turquoise#40E0D071, 0, 7, 1290%
Sky blue#87CEEB43, 12, 0, 863%
Royal blue#4169E171, 53, 0, 12136%
Slate blue#6A5ACD48, 56, 0, 20124%
Indigo#4B008242, 100, 0, 49191%
Lavender#E6E6FA8, 8, 0, 218%
Plum#DDA0DD0, 28, 0, 1341%
Sea green#2E8B5767, 0, 37, 45149%
Lime green#32CD3276, 0, 76, 20172%
Spring green#00FF7F100, 0, 50, 0150%
Dark slate#2F4F4F41, 0, 0, 69110%

Converting HEX to CMYK in design software #

The numbers above are the plain arithmetic. Design software does something more careful, and it is worth knowing which you are looking at.

  • Photoshop and Illustrator convert through the CMYK profile assigned to the document, using measured data about how real inks behave. Their answer will differ slightly from this page, and it is the better one when you know which press is running the job.
  • InDesign holds colours in whatever space you defined and converts at export. Check your PDF export preset rather than the swatch panel.
  • Canva and Figma are RGB tools. Neither does profile-aware CMYK conversion, so a value from this page is a reasonable specification to hand to a printer alongside the file.

Use this converter to understand or communicate a colour. Let colour-managed software handle the document conversion when a specific press is involved.

What a HEX to CMYK conversion cannot tell you #

It cannot tell you what the colour will look like coming off the press. Four things change that, and none of them are in the arithmetic:

  • The paper. The same file prints noticeably duller on uncoated stock than on gloss, because uncoated paper absorbs ink and scatters light.
  • The press profile. A commercial sheetfed press and a digital press in a copy shop work to different standards and will hit different colours from identical numbers.
  • Dot gain. Halftone dots spread slightly as ink meets paper, so tints print darker than the percentage suggests.
  • Your monitor. If it has never been calibrated, the colour you are matching to may not be the colour you think it is.

Use these values to specify and communicate a colour. Use a physical proof from your actual printer to approve one.

Terms you will meet along the way #

Process colourFull-colour printing built from the four CMYK inks.
Spot colourA single pre-mixed ink printed from its own plate.
GamutThe range of colours a device or ink set can reproduce.
Total ink coverageThe four ink percentages added together.
Rich blackBlack built from all four inks rather than K alone.
Dot gainThe spread of halftone dots as ink meets paper.
ICC profileMeasured data describing how one device reproduces colour.
Subtractive mixingBuilding colour by removing light, as ink does.

Most of these are covered properly in the guide to CMYK.

HEX to CMYK questions #

How do I convert HEX to CMYK?

Read the hex code as three RGB values, divide each by 255, then set K to 1 minus the largest of the three. Each remaining ink is the channel subtracted from 1, minus K, divided by 1 minus K. Multiply all four by 100. The converter at the top of this page does all of that as you type.

Is there one correct CMYK value for a hex colour?

No. A hex code describes light coming out of a screen; CMYK describes ink sitting on paper. There is no single true translation between the two, only a best estimate. The formula on this page gives the standard mathematical estimate, which is what design software shows you before you assign a colour profile. Your printer's own profile will produce slightly different numbers, and both are legitimate.

What is the CMYK value of #FFFFFF and #000000?

White is 0, 0, 0, 0 — no ink at all, just the paper. Black is 0, 0, 0, 100, meaning the black plate alone at full strength. Note that a design file often wants a richer black than that for large solid areas, built by adding some cyan and magenta underneath.

Why is my K value zero when the colour looks dark?

The formula only assigns ink to K when all three channels are below full brightness together. A saturated dark blue can come out as heavy cyan and magenta with no black at all. It will print, but it eats ink and can look muddy. If K reads 0 on a dark colour, consider building it by hand: pull some cyan and magenta out and add black.

Can I use these numbers straight in Illustrator or InDesign?

You can type them in, yes. But if your document already has a CMYK profile assigned, the application is doing a profile-aware conversion that is more accurate than this arithmetic. Use this converter to understand or communicate a colour, and let your design software handle the actual document conversion.

What does the ink coverage figure mean?

It is the four ink percentages added together. A colour at 88, 44, 0, 0 has 132% coverage. Presses have a ceiling, often between 240% and 300% depending on the press and the paper, because too much wet ink will not dry properly and can offset onto the next sheet. If your colour goes over, your printer will ask you to reduce it.

Does the converter send my colour anywhere?

No. Every calculation on this site runs in your browser. Nothing about the colours you enter is transmitted to us or stored.

Does it work with three-digit and eight-digit hex codes?

Yes. A three-digit code is shorthand where each digit is doubled, so #F0A means the same as #FF00AA. Eight-digit codes work too; the last pair is the alpha channel, which is ignored for CMYK because ink has no opacity value.