hex to cmyk

HEX to CMYK and RGB converter

You picked a color on screen, it looks great, and now it has to go to a printer. The printer wants CMYK numbers.

Your design file has a HEX code like #1E90FF, or maybe an RGB value someone sent you in an email. This converter takes any one of those three formats and gives you the other two in one go.

Type a HEX code, an RGB triplet or a set of CMYK percentages, and you get all three values side by side.

If the color is a bright screen color that ink can’t really match, the tool tells you so before you send the file off. Most free converters skip that warning, and it’s what keeps you from opening a box of business cards to find your logo looks tired.

One thing up front: the CMYK numbers here are an approximation.

They’re a solid starting point for any palette going to print, and further down I explain why no web converter can promise more than that.

HEX to CMYK and RGB converter

HEX
#
RGB
CMYK

Type in any of the three and the others follow.

See the color

Type a HEX code, RGB or CMYK values, and the others show up here.

How the conversion works, and why it is an approximation

HEX and RGB describe the same thing: how much red, green and blue light a screen gives off. HEX writes the three numbers from 0 to 255 in base 16. Those two convert exactly.

CMYK is ink on paper: cyan, magenta, yellow and black. This converter uses the plain formula most online converters use. Real print shops convert with a color profile for their press and paper, so their numbers can differ by several percent, and a proof is the only sure check.

Ink can't reach the brightest screen colors. Vivid blues, greens, purples and neon shades come out duller in print. The converter warns you when a color is in that range and suggests a calmer version that prints closer to what you see.

Common colors in HEX, RGB and CMYK

ColorHEXRGBCMYK
Black#0000000, 0, 00, 0, 0, 100
White#FFFFFF255, 255, 2550, 0, 0, 0
Red#FF0000255, 0, 00, 100, 100, 0
Orange#FF6600255, 102, 00, 60, 100, 0
Gold#FFD700255, 215, 00, 16, 100, 0
Yellow#FFFF00255, 255, 00, 0, 100, 0
Green#00FF000, 255, 0100, 0, 100, 0
Forest green#228B2234, 139, 3476, 0, 76, 45
Teal#0080800, 128, 128100, 0, 0, 50
Cyan#00FFFF0, 255, 255100, 0, 0, 0
Blue#0000FF0, 0, 255100, 100, 0, 0
Navy#0000800, 0, 128100, 100, 0, 50
Purple#800080128, 0, 1280, 100, 0, 50
Magenta#FF00FF255, 0, 2550, 100, 0, 0
Hot pink#FF69B4255, 105, 1800, 59, 29, 0
Gray#808080128, 128, 1280, 0, 0, 50

CMYK by the plain formula, an approximation. Ask your printer for their numbers when the color must match exactly.

Why screen color and print color don’t match

Your monitor makes color by shining light. Each pixel mixes red, green and blue, and the more light it adds, the brighter the result gets. Turn all three up to full and you get white. That’s RGB, and HEX is just RGB written in a shorter way: #FF8800 means red 255, green 136, blue 0.

Paper works the other way round. It starts white and gets darker as ink goes on. Cyan, magenta and yellow inks each absorb part of the light bouncing off the page, and black (the K in CMYK) is added because mixing the three colored inks only gives you a muddy dark brown. So a screen adds light to build a color, and a printer takes light away.

The practical result is that the two systems can show different ranges of color. A monitor can produce very saturated greens, blues and oranges that no combination of four inks will ever reach. Some CMYK colors, like certain deep cyans, are hard for screens too, but the big losses go in one direction. Bright screen colors lose strength on paper.

How to use the converter

You can start from whichever value you already have. You don’t have to hunt between a HEX to CMYK page and an RGB to CMYK converter page, because every input fills in the other two.

  1. Enter a HEX code, with or without the # sign. Six digits like 2A9D8F work, and so do three-digit shorthand codes like F80.
  2. Or enter RGB as three numbers from 0 to 255, for example 42, 157, 143.
  3. Or enter CMYK as four percentages from 0 to 100, for example 73, 0, 9, 38.
  4. Read the results. You’ll see the HEX code, the RGB values and the CMYK percentages together, plus a color swatch so you can check you typed what you meant.
  5. Check for the warning. If one appears, your color will likely print flatter and weaker than it looks on screen.

Copy whichever value you need. Designers usually paste the HEX into web or social graphics, the RGB into apps that ask for it, and the CMYK into the print file or the email to the print shop.

Going from CMYK back to HEX is handy too. If a printer or a brand guide gives you only CMYK numbers, converting them tells you roughly what the color should look like on screen, which makes it much easier to match it in Canva or Figma.

The warning for bright colors

The warning shows up when you enter a color that is both bright and heavily saturated. Those are the colors sitting at the outer edge of what a screen can show, and they’re usually outside what four process inks can print.

The converter still gives you CMYK numbers for them. It just tells you the printed result won’t have the same punch.

A few common colors, run through the converter:

ColorHEXApprox. CMYK (%)What to expect in print
Pure screen green#00FF00100, 0, 100, 0Warning. Prints as a flatter grass green.
Pure screen blue#0000FF100, 100, 0, 0Warning. Often leans toward purple or navy.
Hot magenta#FF00FF0, 100, 0, 0Warning. Process magenta is pinker and less electric.
Vivid orange#FF6A000, 58, 100, 0Warning. Comes out a little browner.
Muted teal#2A9D8F73, 0, 9, 38No warning. Prints close to the screen.

Notice that the CMYK numbers for pure green look perfectly normal. Nothing in 100, 0, 100, 0 tells you that the green on paper will be weaker than the one on your monitor. That’s why the warning exists. The math will always hand you four numbers, even for a color the press can’t reach.

If you see the warning, you have a few options. You can accept the softer version, since a slightly calmer green is fine for a lot of jobs. You can nudge the color yourself toward something less saturated and check whether the warning goes away.

Or, for logos and brand colors that must stay vivid, you can ask your printer about a spot color such as a Pantone ink, which is mixed separately and can reach colors four-color printing can’t.

How the conversion works, and why it’s an approximation

HEX to RGB is exact. Each pair of HEX digits is a number from 0 to 255 written in base 16, so #2A9D8F splits into 2A, 9D and 8F, which are 42, 157 and 143. Going back is just as exact.

RGB to CMYK uses a standard formula. Each RGB value is divided by 255 so it sits between 0 and 1. Black is worked out first from the brightest of the three channels, then cyan, magenta and yellow are calculated from what’s left:

K = 1 - \max(R', G', B') \qquad C = \frac{1 - R' - K}{1 - K} \qquad M = \frac{1 - G' - K}{1 - K} \qquad Y = \frac{1 - B' - K}{1 - K}

CMYK back to RGB reverses it: red is 255 × (1 − C) × (1 − K), and the same pattern gives you green and blue.

This formula is the same one almost every online converter uses, and it’s useful. It’s also simplified. It treats ink as perfect and paper as perfectly white, and real printing has neither. The same CMYK values will look different on glossy coated paper, uncoated office paper and newsprint.

Different presses and inks behave differently too. Professional software handles this with ICC color profiles, which describe how a specific press and paper actually reproduce color, so a file converted with a profile for coated European stock gets different numbers from one prepared for uncoated paper.

A browser-based tool doesn’t know which printer, paper or profile you’ll end up with, so it can’t give you those tailored numbers. Treat the CMYK result as a reliable approximation for planning a palette, and let your printer or your design software’s profile settings make the final call. When color really matters, ask for a printed proof before the full run.

Tips for palettes that will be printed

Run every color through the converter while you’re still choosing the palette. Swapping one teal for another at the moodboard stage takes a minute. Changing it across forty pages of a finished layout takes an afternoon.

Keep one master list of each color in all three formats. A small table with the name, HEX, RGB and CMYK for every brand color stops people from guessing later, and it means the website and the flyer start from the same source.

Be careful with black. #000000 converts to 0, 0, 0, 100, which is plain black ink. That’s right for body text, but large black areas can look a bit grey and washed out.

Many printers recommend a “rich black” for big blocks, such as 60, 40, 40, 100, while keeping small text in plain black so the letters stay crisp. Ask your print shop what they prefer, because they’ll also have a limit on total ink coverage, often somewhere around 300%.

Watch thin lines and small text in mixed colors. A fine line built from four inks needs all four plates to line up perfectly, and a tiny misalignment shows as a colored fringe. Single-ink colors are safer for small details.

Finally, don’t judge print color from a bright phone screen. Even a calibrated monitor is only a guide. A printed proof is the only true preview.

Common questions

Is the HEX to CMYK result exact?

No. HEX to RGB is exact, but any conversion to CMYK depends on the paper, ink and press, which a web tool can’t know. The numbers are a close starting point, and your printer’s color profile decides the final values.

Why does my CMYK color look different from the HEX color on screen?

When you view CMYK on a monitor, the screen is simulating ink with light. If the original HEX color was very bright, the CMYK version is the weaker color that ink can actually produce, and that’s what the warning is pointing at.

Can I use the RGB to CMYK converter for a whole palette?

Yes. Enter each color one at a time and note the results. It’s a good habit for any palette going to print, from a wedding invitation to a product label.

What should I send my printer?

Send a print-ready PDF with colors set up in CMYK, or spot colors if you’re using them, and mention any color that must match exactly. If you only have HEX codes, give them those as well. A good print shop would rather see your intended screen color than guess at it.