Notification
Go to Home All Tools Compare Glossary Blog Contact

CMYK to HEX Converter

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

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

How to convert CMYK to HEX by hand

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

  1. Turn the four percentages into fractions (divide by 100).
  2. R = 255 × (1 − C) × (1 − K), G = 255 × (1 − M) × (1 − K), B = 255 × (1 − Y) × (1 − K).
  3. Round each to a whole number and write it as two hex digits. This is the simple screen formula, not an ICC print profile.

Worked example: navy (cmyk(100%, 100%, 0%, 50%))

Worked Hand Example
ChannelCalculationValue
Red255 × (1 − 1) × (1 − 0.5)0
Green255 × (1 − 1) × (1 − 0.5)0
Blue255 × (1 − 0) × (1 − 0.5)128
cmyk(100%, 100%, 0%, 50%) = #000080.

Common colours: CMYK to HEX

CSS named colours converted both ways.

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

Is this colour readable?

Contrast of navy (#000080) against white and black (WCAG 2.x).

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

Related converters

Quickly jump to other conversions and color systems

Education

About this converter

01

Exact and Explained

Paste a CMYK colour and get the HEX value. Example: navy is cmyk(100%, 100%, 0%, 50%) = #000080. 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.

navy is #000080 (in CMYK: cmyk(100%, 100%, 0%, 50%)). These are CSS named colour values.

1. Turn the four percentages into fractions (divide by 100). 2. R = 255 × (1 − C) × (1 − K), G = 255 × (1 − M) × (1 − K), B = 255 × (1 − Y) × (1 − K). 3. Round each to a whole number and write it as two hex digits. This is the simple screen formula, not an ICC print profile.

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