HEX to CMYK Color Converter

Convert HEX to CMYK instantly — free, in your browser.

Processed locally — files never leave your device

Type a HEX code like #FF0000 or #F00, or use the color picker. The result updates as you type.

Works offline once loaded Uploaded: 0 bytes

CMYK describes a color by the four inks a printer lays down — cyan, magenta, yellow and black (the key) — each as a percentage. This free converter gives you the exact HEX to CMYK values instantly, with a live swatch so you can see the color as you type — no tables to look up, no guessing.

It runs entirely in your browser, so nothing is uploaded and it works offline once the page loads. Designers use it to translate brand colors between tools: copy a HEX from a style guide, get the RGB for CSS, the HSL for a color picker, or the CMYK for print. For image work, pair it with the Image Compressor or the Background Remover.

How to use

  1. Type or paste your HEX color value into the box above — or pick a color with the color picker.
  2. The result updates live, with a swatch showing the exact color.
  3. Check the breakdown: every channel is shown separately.
  4. Press Copy to copy the converted value for your CSS, design tool or print file.

Why use Toolsvine

CMYK is the language of print: screens mix light, printers mix ink, and the translation between them is not guesswork — it is arithmetic. Getting CMYK from a HEX code by hand means dividing, finding maxima and doing fractions for four channels, and one slip turns a cobalt blue into a washed-out gray. A converter that runs locally, shows the swatch live and copies the answer in one click turns a chore into a second — free, with no account and no upload.

How does the HEX to CMYK conversion work?

Turn the HEX into RGB channels from 0 to 1. The black key is K = 1 − max(R, G, B); the rest are C = (1 − R − K) / (1 − K), M = (1 − G − K) / (1 − K) and Y = (1 − B − K) / (1 − K).

Multiply each by 100 for the usual percentage form, and you have the four ink values a printer needs. If K is 1 the color is pure black and the other channels are 0 — black ink alone does the job. If K is 0 the color is as bright as the paper allows, and the three color inks carry the whole load.

Worked example: cobalt blue #0047AB

Cobalt blue #0047AB is cmyk(100%, 58%, 0%, 33%). The channels are R = 0, G = 0.28 and B = 0.67, so the black key is 1 − 0.67 = 33%, cyan is full at 100%, magenta is 58% and yellow is 0%.

HEX to CMYK worked example showing cobalt blue hex code 0047AB converted to cmyk 100 58 0 33 percent
#0047AB converts to cmyk(100%, 58%, 0%, 33%) — full cyan, no yellow.

The printer lays down full cyan, a little over half magenta and a third black — and no yellow at all.

Common colors

ColorValue
Red #FF0000cmyk(0%, 100%, 100%, 0%)
Green #00FF00cmyk(100%, 0%, 100%, 0%)
Blue #0000FFcmyk(100%, 100%, 0%, 0%)
Black #000000cmyk(0%, 0%, 0%, 100%)
White #FFFFFFcmyk(0%, 0%, 0%, 0%)

Values are rounded for display: RGB channels are whole numbers from 0 to 255, HSL and HSV use degrees and percentages, and OKLCH lightness runs from 0 to 1. The converter itself keeps full precision and only rounds what it shows you.

Why do printed colors look different from screen colors?

Screens make color by adding light, printers make it by subtracting it with ink, and ink cannot reproduce the brightest screen colors. A vivid screen blue like #0047AB always prints darker and duller, because CMYK's range is smaller than RGB's.

That is why designers check the CMYK numbers before ordering business cards, flyers or packaging — the print proof is the truth, not the monitor. If a print shop asks for CMYK values, give them the percentages above, not the HEX code. For the screen version of the same color, the HEX to RGB Color Converter gives you the channel values.

Frequently asked questions

How do I convert HEX to CMYK?

Type the value in the box above — the result appears instantly, with a swatch showing the exact color. Press Copy to use it in your CSS or design file. The converter accepts six-digit codes with or without the # sign, and three-digit shorthand like #F00 expands to #FF0000 automatically.

Is my color data uploaded anywhere?

No. The conversion runs in your browser with JavaScript. Nothing leaves your device, and the page works offline after it loads. Your brand colors and client palettes never leave your computer, which is the whole point of a local converter.

Why do the same colors have different values in different tools?

Every color model describes the same color differently: HEX and RGB store red, green and blue amounts; HSL stores hue, saturation and lightness; CMYK stores ink. They are translations, not different colors. The swatch never changes — only the numbers that describe it do.

Why does my printed color look different from the screen?

Screens add light, printers subtract it with ink, and ink cannot reproduce the brightest screen colors. A vivid blue like #0047AB prints darker and duller than it looks on your monitor. Always order a printed proof for anything that matters — business cards, packaging, event banners — before approving a large run.

Can I use the CMYK result in CSS?

Not directly — CSS does not have a CMYK color function, so use the HEX or RGB value for screens. The CMYK numbers are for print shops and design tools like InDesign and Illustrator, which accept them as ink percentages. Keep both versions in your brand guide: HEX for the web, CMYK for print.