Skip to main content

Hex to CMYK Converter

Convert any hex color code to CMYK for print production. Note that CMYK has a narrower color gamut than RGB — some bright screen colors will appear duller when printed.

#EFBF04

Convert HEX to CMYK

Format
HEX
#
CMYK

0, 20, 98, 6

Also available in

CodeValueHTML/CSS
RGB239, 191, 4rgb(239 191 4)
HSL48, 97, 48hsl(48 97% 48%)
HSV48, 98, 94
OKLCH0.82, 0.17, 90oklch(0.82 0.17 90)

CMYK values are approximate. For production printing, use ICC profile-based conversion in your design software.

Use this color in Moda

Apply exact brand colors to slides, social posts, and other designs — all on a real canvas you control.

Try Moda free →

How to convert hex to CMYK

The conversion happens in two steps. First, the hex code is decoded into RGB values (each pair of hex digits becomes a 0–255 number). Then the RGB values are normalized to a 0–1 range and converted to CMYK: K (key/black) = 1 − max(R, G, B). Then C = (1−R−K)/(1−K), M = (1−G−K)/(1−K), Y = (1−B−K)/(1−K). Results are expressed as percentages from 0 to 100.

When to use hex vs CMYK

Hex is a screen color format — use it for websites, apps, and digital displays. CMYK is a print color format — use it for anything that goes through a commercial printing press: business cards, brochures, packaging, posters, and trade show banners. If a designer hands you hex codes and you need to send files to a printer, you will need to convert them to CMYK.

Worked example

Convert #2E86AB to CMYK: First, to RGB: 2E=46, 86=134, AB=171. Normalize: R=0.180, G=0.525, B=0.671. K = 1−0.671 = 0.329. C = (1−0.180−0.329)/(1−0.329) = 0.732 → 73%. M = (1−0.525−0.329)/(1−0.329) = 0.217 → 22%. Y = (1−0.671−0.329)/(1−0.329) = 0.000 → 0%. K = 33%. Result: CMYK(73, 22, 0, 33) — a medium blue.

CMYK accuracy note

This conversion is a mathematical approximation using the standard formula. True CMYK color matching for commercial printing requires ICC color profiles specific to the printer, ink set, and paper stock. The values here are a useful starting point, but always consult your print vendor for production-critical color work.

Frequently asked questions

How do I convert hex to CMYK?

The conversion is a two-step process: first, the hex code is converted to RGB values, then those RGB values are converted to CMYK using a mathematical formula. This tool handles both steps automatically.

What is CMYK?

CMYK stands for Cyan, Magenta, Yellow, and Key (black). It is the subtractive color model used in commercial printing. Unlike RGB (which adds light), CMYK works by subtracting light from white paper using ink.

Can all hex colors be reproduced in CMYK?

No. CMYK has a narrower color gamut than RGB. Very bright, saturated, or neon colors that look vivid on screen will appear duller when converted to CMYK for print.

When should I use CMYK instead of hex?

Use CMYK when preparing files for commercial printing — business cards, brochures, posters, and packaging. Use hex or RGB for anything displayed on screens.

← All tools