HEX to CMYK Converter
Paste a HEX color code, or pick a color, and get the CMYK percentages for printing. Switch direction to go from CMYK to HEX.
#2E86DE = C 79 · M 40 · Y 0 · K 13
Rounded to whole percentages. Your printer’s color profile may give slightly different numbers.
How to Convert HEX to CMYK
A HEX code is three numbers, for red, green and blue light, written in base 16. CMYK is four ink percentages. To convert, turn the HEX into RGB, then work out how much of each ink you need:
- Split the HEX code into three pairs: red, green, blue. Convert each pair to a number from 0 to 255 by multiplying the first digit by 16 and adding the second (A–F count as 10–15).
- Divide each number by 255, so the values run from 0 to 1.
- Work out black (K) first: 1 minus the biggest of the three.
- Work out cyan, magenta and yellow with the formulas below, then multiply all four by 100 for percentages.
Pure black (#000000) is the one exception: it is simply K 100 with no other ink. If you only need the RGB values, the HEX to RGB converter covers the first step on its own.
Worked Example: #2E86DE to CMYK
Your website's blue is #2E86DE and you're ordering printed business cards.
Step 1: HEX to RGB
Step 2: Divide by 255
Step 3: Black first
Step 4: Cyan, magenta and yellow
Result: C 79, M 40, Y 0, K 13. The tool above opens with this color loaded.
HEX to CMYK Chart
Common HEX colors and their CMYK values, rounded to whole percentages.
| Color | HEX | C | M | Y | K |
|---|---|---|---|---|---|
| Red | #FF0000 | 0% | 100% | 100% | 0% |
| Green | #00FF00 | 100% | 0% | 100% | 0% |
| Blue | #0000FF | 100% | 100% | 0% | 0% |
| Yellow | #FFFF00 | 0% | 0% | 100% | 0% |
| Cyan | #00FFFF | 100% | 0% | 0% | 0% |
| Magenta | #FF00FF | 0% | 100% | 0% | 0% |
| Orange | #FFA500 | 0% | 35% | 100% | 0% |
| Purple | #800080 | 0% | 100% | 0% | 50% |
| Pink | #FFC0CB | 0% | 25% | 20% | 0% |
| Navy | #000080 | 100% | 100% | 0% | 50% |
| Grey | #808080 | 0% | 0% | 0% | 50% |
| Black | #000000 | 0% | 0% | 0% | 100% |
| White | #FFFFFF | 0% | 0% | 0% | 0% |
Will My Color Print the Same as on Screen?
Not always. A screen makes color from light, so it can show brighter, more intense colors than ink on paper can. Bright greens, electric blues, neon pinks and vivid oranges are the usual problem colors: they will print duller than they look on screen. Softer colors, greys and dark shades usually print close to how they look. The tool warns you when a color is in the bright, hard-to-print group.
| Kind of color | Example | In print |
|---|---|---|
| Bright, saturated | #00FF00 | Noticeably duller |
| Strong but not neon | #2E86DE | Close, slightly flatter |
| Soft or pastel | #FFC0CB | Close |
| Greys and dark shades | #808080 | Close |
Paper matters too: the same CMYK values look brighter on glossy paper than on uncoated paper.
Getting Print-Ready CMYK Values
The formula on this page is the standard quick conversion, and it is fine for most everyday printing. Professional printers fine-tune it with a color profile for their press and paper, which is why Photoshop or a print shop may give you slightly different numbers. For an important job:
- Ask your printer which profile they use. Common ones are FOGRA39 in Europe and GRACoL or SWOP in the US. In Photoshop, choose Edit → Convert to Profile and pick that profile.
- Order a proof if the color really matters, such as a logo on packaging.
- Keep black text as K 100 only. Mixing all four inks for small text can blur it if the plates are slightly out of line.
- Use rich black for large black areas. K 100 alone can look dark grey on a big background. A common recipe is C 60, M 40, Y 40, K 100, but check with your printer.
Frequently asked questions
What is the CMYK code for #0000FF?
C 100, M 100, Y 0, K 0. In print it comes out as a deep violet-blue, darker than the bright blue you see on screen.
Why does Photoshop give different CMYK numbers?
Photoshop converts using a color profile for a particular press and paper. This page uses the standard formula with no profile, so the numbers can differ by a few points.
Why is black only K, with no C, M or Y?
The formula puts all of the darkness into black ink. That is right for text. For large black areas, printers often add some C, M and Y to make a richer black.
Should I round the percentages?
Yes. Design apps and printers use whole percentages, so the tool rounds them for you.
Sources
- W3C: CSS Color Module Level 4, hex notation: how #RRGGBB codes describe red, green and blue.
- Adobe: Proof colors in Photoshop: previewing on screen how a color will print with a chosen profile.
Related Tools
Convert Base64 encoded data into hexadecimal values.
Convert hexadecimal values into Base64 encoded data.
Convert binary values into hexadecimal numbers.
Convert CMYK color values into HEX color codes.
Convert decimal integers into hexadecimal values.
Convert hexadecimal values into decimal integers.