Hex to CMYK Converter

Convert a hex colour code into CMYK for print work.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Hex to CMYK converter

Paste a hex colour code and get the matching CMYK ink percentages — cyan, magenta, yellow and key (black) — for print and design work, with a live swatch and a one-click copy. Screens mix light (RGB), but printers mix ink (CMYK), so a hex value from your design has to be translated before it goes to press.

How it works

The tool first parses the hex into red, green and blue (0–255), expanding 3-digit shorthand if needed. It normalises each channel to a 0–1 range, then applies the standard RGB-to-CMYK formula:

  • K (black) = 1 − max(R, G, B)
  • C = (1 − R − K) / (1 − K)
  • M = (1 − G − K) / (1 − K)
  • Y = (1 − B − K) / (1 − K)

Each result is multiplied by 100 and rounded to a whole percent. Pure black is a special case (K = 100, the rest 0).

Example

For #3b82f6 (a blue), the RGB is 59, 130, 246. Then:

  • K = 1 − 246/255 = 0.035 → 4%
  • C = (1 − 59/255 − 0.035) / (1 − 0.035) = 76%
  • M = (1 − 130/255 − 0.035) / 0.965 = 47%
  • Y = (1 − 246/255 − 0.035) / 0.965 = 0%

Result: cmyk(76%, 47%, 0%, 4%).

It is a close mathematical approximation; final print colour also depends on your printer profile. Everything runs in your browser — nothing is uploaded.

Ad placeholder (rectangle)