Hex ↔ CMYK Converter

Convert Hex colors to print-ready CMYK percentages and back again with instant previews and copy buttons.

CMYK to Hex

Enter cyan, magenta, yellow and key (black) values from 0–100% to generate the matching Hex color.

Each channel must be between 0 and 100. Decimals are allowed.

Hex to CMYK

Paste a 3- or 6-digit Hex color to see the CMYK percentages.

Use #RRGGBB or #RGB format. Letters are case-insensitive.

When to use CMYK?

CMYK expresses colors as percentages of cyan, magenta, yellow and black ink. It is the native language for printers, packaging and most physical media.

Adjusting CMYK channels helps you manage ink coverage, drying times and color consistency between print runs.

When to use Hex?

Hex condenses RGB light values into a simple six-character string that is easy to store in design systems, CSS and brand guidelines.

Because Hex is web-native, it is ideal for handing off exact brand colors to developers or for previewing CMYK selections on screen.

Convert Hex and CMYK manually

Need to double-check the math? Follow these steps to convert without a calculator.

  • Normalize each CMYK value by dividing by 100, then compute R, G and B as 255 × (1 − channel) × (1 − K).
  • Convert each RGB channel into hexadecimal by dividing by 16 and mapping remainders 10–15 to A–F.
  • To move from Hex to CMYK, convert each hex pair back to 0–255, normalize to 0–1, calculate K = 1 − max(R,G,B) and derive the remaining channels.