Hex to CMYK Converter

Screen (Hex)
Print (CMYK)

Hex Code Input

Accepts 3, 6, or 8-digit hex — with or without the leading #. Shorthand like #F00 auto-expands; an alpha channel is ignored.

Conversion Pipeline

Hex

#2563EB

RGB (decoded)

37, 99, 235

CMYK

84 58 0 8

Common Brand Hex Codes

CMYK Values

C

84

%

M

58

%

Y

0

%

K

8

%

Ink Coverage

Cyan84.3%
Magenta57.9%
Yellow0%
Key (Black)7.8%
Total Ink Coverage150% (safe)

RGB

37, 99, 235

Hex (clean)

#2563EB

CSS (print)

device-cmyk(84% 58% 0% 8%)

// Hex decoded, then CMYK computed

#2563EB → R=37, G=99, B=235

K = 1 - max(0.145, 0.388, 0.922) = 0.078

C = (1 - 0.145 - 0.078) / (1 - 0.078) = 0.843

M = (1 - 0.388 - 0.078) / (1 - 0.078) = 0.579

Y = (1 - 0.922 - 0.078) / (1 - 0.078) = 0.000

How to Use This Tool

  1. 1.Type or paste a hex code into the input field — #2563EB, 2563eb, or even the shorthand #25E all work. Or click the color swatch to pick visually.
  2. 2.Watch the Conversion Pipeline box — it shows your hex decoded to RGB first, then translated to CMYK, so you can see exactly where each value comes from.
  3. 3.Read the four CMYK percentages in the blue panel. A yellow warning means the color sits outside the printable gamut and will shift on paper.
  4. 4.Check Total Ink Coverage — keep it under 300% for commercial offset, under 240% for newsprint, or your file may get bounced by the print shop.
  5. 5.Hit “Copy CMYK” to grab the values for your design software, or copy the RGB, clean hex, or CSS device-cmyk() output instead.

Rate this tool

Hex to CMYK: Handing Web Colors Off to the Print Shop

A hex to CMYK converter solves a specific, recurring headache: you built a brand in the browser, every color lives in your CSS as a hex code like #2563EB, and now a print vendor is asking for CMYK values for the business cards. Hex is the native language of the web; CMYK is the native language of ink. Nobody hands a printer a hex code and expects good results. This is the translation step in the middle, and getting it wrong is how a crisp on-screen blue ends up as a muddy navy on a 5,000-unit print run.

Hex to CMYK conversion pipeline showing a hex code decoded into RGB channels then translated into cyan, magenta, yellow, and key black ink percentages

The Web-to-Print Handoff Problem

Hex codes exist for one reason: to be compact in markup. #FF5733 is three bytes written as six characters — far tidier than rgb(255, 87, 51)in a stylesheet. But that compactness hides a structure that print software can't use directly. A press doesn't spray red, green, and blue light; it lays down cyan, magenta, yellow, and black ink onto white paper. Those are opposite physical processes — additive light versus subtractive pigment — so the numbers have to be recomputed, not just reformatted.

The pain shows up at handoff. A designer specs #1DB954 (Spotify green) in Figma. The print shop's prepress operator needs that as CMYK to load into the RIP. Eyeball it and the printed green drifts. Run #1DB954 through the converter above and you get CMYK(84, 0, 55, 27) — a number you can write on the print order and stand behind.

Why It Takes Two Hops, Not One

Here's the part most people miss: there is no direct hex-to-CMYK formula. A hex code isn't a color in its own right — it's base-16 shorthand for three RGB numbers. #2563EB is literally three pairs: 25, 63, EB. Convert each pair from hexadecimal to decimal (25 = 2×16 + 5 = 37) and you have RGB(37, 99, 235). Only then can the CMYK math run, because the subtractive formula operates on RGB channels.

So every hex-to-CMYK tool — this one included — quietly does two steps: decode the hex to RGB, then convert RGB to CMYK. The converter above surfaces both in its pipeline display so you're never guessing. If you only need the first hop, our hex to RGB converter stops there; if your source is already in RGB, the RGB to CMYK converter skips the decode entirely.

Worked Example: #2563EB Step by Step

Let's convert #2563EB — UnitCalcTools' own brand blue — by hand, both hops shown.

Hop 1, decode the hex. Split into pairs and read each as hexadecimal: 25 = 37, 63 = 99, EB = 235. Result: RGB(37, 99, 235).

Hop 2, normalize.Divide each channel by 255: R' = 0.145, G' = 0.388, B' = 0.922.

Find the black. K = 1 − max(0.145, 0.388, 0.922) = 1 − 0.922 = 0.078, about 8% black ink. Low, because the color is bright.

Compute the three colored inks, each scaled by the remaining non-black room (1 − K = 0.922):

  • C = (1 − 0.145 − 0.078) / 0.922 = 0.843 → 84%
  • M = (1 − 0.388 − 0.078) / 0.922 = 0.579 → 58%
  • Y = (1 − 0.922 − 0.078) / 0.922 = 0.000 → 0%

Final answer: CMYK(84, 58, 0, 8). Add them up and total ink coverage is 150% — nowhere near the 300% danger line, so this blue prints cleanly on any stock. The dark formula panel in the tool above shows these exact intermediate values updating live as you type.

Shorthand, 8-Digit, and the Alpha Trap

Hex codes come in more flavors than the classic six digits, and each affects the conversion differently:

  • 3-digit shorthand (#F00). Each character doubles: #F00 expands to #FF0000, #25E to #2255EE. Shorthand and its expanded form always produce identical CMYK, because they decode to the same RGB. #F00 and #FF0000 both give CMYK(0, 100, 100, 0).
  • 8-digit hex (#2563EBCC). The last pair is an alpha channel — CC = 204/255 ≈ 80% opacity. CMYK has no transparency; ink is opaque. So the alpha gets dropped, and #2563EBCC converts exactly like #2563EB. To get a lighter printed tint, you reduce the ink percentages, not carry over opacity.
  • Case and the hash. #2563EB, #2563eb, and 2563EB are all the same color. Hexadecimal is case-insensitive and the # is just a CSS marker. A good converter trims and normalizes all of these — paste straight from your stylesheet without cleaning it up.

When NOT to Trust a Hex-to-CMYK Number

The formula here is device-independent: it assumes idealized inks and paper. That's perfect for a quick estimate and for sanity-checking a vendor's numbers. It is the wrong tool in three cases:

  • Brand-critical color.If the hex is a registered brand color, don't convert it — look up the official Pantone spot value and its CMYK fallback. Coca-Cola doesn't print #F40009 run through a generic formula; it specifies PMS 484. Our RGB to Pantone matching tool explains why exact conversion to spot color doesn't exist and how to find the nearest match.
  • Photographs.A generic formula applies one transform to every pixel. For photo work, use a real ICC profile in Photoshop (Edit → Convert to Profile → “U.S. Web Coated SWOP v2”), which carries millions of pre-computed perceptual corrections for skin tones and gradients.
  • Wide-gamut hex.A hex from a Display P3 design system encodes a different absolute color than the same hex in sRGB. Convert to sRGB first, or the printed result will be off in ways the on-screen preview can't reveal. According to the W3C CSS Color 4 specification, bare hex notation is always interpreted as sRGB — so a plain #RRGGBB is safe to feed this converter, but a color(display-p3 ...) value is not.

Brand Hex Codes and Their CMYK Equivalents

These are codes designers paste in constantly. The CMYK values are the device-independent formula result — close enough for a proof, but always confirm brand colors against the official style guide.

ColorHexCMYKTIC
Facebook Blue#1877F290, 51, 0, 5146%
Spotify Green#1DB95484, 0, 55, 27166%
Amazon Orange#FF99000, 40, 100, 0140%
Coca-Cola Red#F400090, 100, 96, 4200%
Tiffany Blue#81D8D040, 0, 4, 1559%
Pure White#FFFFFF0, 0, 0, 00%
Pure Black#0000000, 0, 0, 100100%

Notice Amazon's orange lands at 0% cyan and 0% black — a clean two-ink mix that reproduces well. Spotify's green, by contrast, picks up 27% black from the conversion, which is exactly why printed greens often look heavier than the screen version. When a printed color matters, order a physical proof before committing to the full run.

Marko Sinko
Marko SinkoTechnical Tools Editor

Croatian developer with a Computer Science degree from University of Zagreb and expertise in advanced algorithms. Marko builds and verifies the technical tools, number system converters, and scientific calculators across UnitCalcTools, ensuring mathematical precision and developer-friendly interfaces.

Last updated: June 22, 2026LinkedIn

Frequently Asked Questions

First decode the hex to RGB: 25 = 37, 63 = 99, EB = 235, giving RGB(37, 99, 235). Then K = 1 - max(37, 99, 235)/255 = 0.078. C = (1 - 37/255 - 0.078) / (1 - 0.078) = 84%, M = 58%, Y = 0%, K = 8%. So #2563EB becomes CMYK(84, 58, 0, 8) with 150% total ink coverage — safe for any commercial press.
There is no direct hex-to-CMYK formula. A hex code is just a base-16 shorthand for three RGB channels — #FF0000 literally means R=255, G=0, B=0. The CMYK math operates on those decimal RGB values, so every converter decodes the hex to RGB first, then applies the subtractive ink formula. This tool shows both steps so you can verify the intermediate RGB.
Pure white #FFFFFF converts to CMYK(0, 0, 0, 0) — zero ink. On paper, white is the absence of ink because the paper itself is white. This is the opposite of screen white, which is all three RGB channels at full brightness (255, 255, 255). If your design has a white background, the press simply leaves that area unprinted.
No — they produce identical CMYK. A 3-digit hex is shorthand where each character is doubled: #F00 expands to #FF0000, #0AF becomes #00AAFF. After expansion both forms decode to the same RGB and therefore the same CMYK. This converter auto-expands shorthand, so #F00 and #FF0000 both return CMYK(0, 100, 100, 0).
CMYK has no transparency channel, so the alpha (the last two digits, CC = 80% opacity) is dropped during conversion. Print is fully opaque — ink either sits on the paper or it doesn't. The converter strips the alpha and treats #2563EBCC the same as #2563EB. If you need a lighter printed tint, reduce the ink percentages instead of relying on opacity.
Saturated blues like #0000FF sit outside the CMYK printable gamut. #0000FF decodes to RGB(0, 0, 255) and converts to roughly CMYK(100, 100, 0, 0) — a cyan-magenta mix that reads as deep violet-blue on paper, not the luminous electric blue your monitor emits. CMYK printing reproduces only about 55-70% of the sRGB colors a screen can show, and vivid blues are the hardest to match.
Yes. Paste codes with or without the leading # — #2563EB and 2563EB both work. The tool also handles uppercase and lowercase (FF and ff are equal) and trims surrounding spaces. CSS named colors like 'tomato' won't work directly; convert them to a hex code first using a color picker, then paste the hex here.

Related Tools