Notification
Go to Home All Tools Compare Glossary Blog Contact

HEX to CMYK Converter

Paste a HEX colour and get the CMYK value. Example: gold is #ffd700 = cmyk(0%, 16%, 100%, 0%). Rounding is stated, and everything runs in your browser.

Client-Side (Private)
Example colour Gold
HEX #ffd700
CMYK cmyk(0%, 16%, 100%, 0%)
Rounding Channels round half up
Live Preview
e.g. #ffd700
Quick try:
Converted Result (CMYK)

How to convert HEX to CMYK by hand

Step-by-step mathematical method you can verify by hand

  1. Convert the hex pairs to RGB first.
  2. Black K = 1 − max(R, G, B).
  3. Cyan = (1 − R − K) ÷ (1 − K), magenta = (1 − G − K) ÷ (1 − K), yellow = (1 − B − K) ÷ (1 − K). When K = 1 the colour is black: C, M, Y are 0.
  4. Multiply by 100 for percentages. This is the simple formula, not a printer profile (ICC), so printed colour can look different.

Worked example: gold (#ffd700)

Worked Hand Example
StepValue
K = 1 − max0%
Cyan0%
Magenta15.69%
Yellow100%
Rounded resultcmyk(0%, 16%, 100%, 0%)
#ffd700 = cmyk(0%, 16%, 100%, 0%) (gold).

Common colours: HEX to CMYK

CSS named colours converted both ways.

ColourHEXCMYK
Red #ff0000 cmyk(0%, 100%, 100%, 0%)
Orange #ffa500 cmyk(0%, 35%, 100%, 0%)
Gold #ffd700 cmyk(0%, 16%, 100%, 0%)
Green #008000 cmyk(100%, 0%, 100%, 50%)
Teal #008080 cmyk(100%, 0%, 0%, 50%)
Blue #0000ff cmyk(100%, 100%, 0%, 0%)
Indigo #4b0082 cmyk(42%, 100%, 0%, 49%)
Purple #800080 cmyk(0%, 100%, 0%, 50%)
Pink #ffc0cb cmyk(0%, 25%, 20%, 0%)
Brown #a52a2a cmyk(0%, 75%, 75%, 35%)
Gray #808080 cmyk(0%, 0%, 0%, 50%)
Black #000000 cmyk(0%, 0%, 0%, 100%)
White #ffffff cmyk(0%, 0%, 0%, 0%)

Is this colour readable?

Contrast of gold (cmyk(0%, 16%, 100%, 0%)) against white and black (WCAG 2.x).

Text colourContrast ratioNormal text AA (4.5)Large text AA (3)
White 1.4:1 Fail Fail
Black 14.97:1 Pass Pass

Related converters

Quickly jump to other conversions and color systems

Education

About this converter

01

Exact and Explained

Paste a HEX colour and get the CMYK value. Example: gold is #ffd700 = cmyk(0%, 16%, 100%, 0%). Rounding is stated, and everything runs in your browser. The worked example and tables on this page are calculated from the numbers themselves, so you can check the result by hand.

02

Privacy

The conversion runs in your browser. Nothing you type is sent to a server.

Good to know

Questions, answered

Quick answers about how this tool works.

gold is cmyk(0%, 16%, 100%, 0%) (in HEX: #ffd700). These are CSS named colour values.

1. Convert the hex pairs to RGB first. 2. Black K = 1 − max(R, G, B). 3. Cyan = (1 − R − K) ÷ (1 − K), magenta = (1 − G − K) ÷ (1 − K), yellow = (1 − B − K) ÷ (1 − K). When K = 1 the colour is black: C, M, Y are 0. 4. Multiply by 100 for percentages. This is the simple formula, not a printer profile (ICC), so printed colour can look different.

Between screen formats it is exact to the shown rounding, but CMYK here is the simple formula, so it is an approximation of print colour.

All of hex, rgb(), hsl(), and the newer oklch() work in current browsers. Hex is the shortest, hsl() is the easiest to adjust by hand (change only the lightness to make a shade), and oklch() gives the most even lightness steps.

Was this tool helpful?

★ 5.0 • 2 user ratings

Tap a star to rate instantly

What do you need to work out next?

Search 278+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Developer Tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI