Notification
Go to Home All Tools Compare Glossary Blog Contact

RGB to CMYK Converter

Paste a RGB colour and get the CMYK value. Example: crimson is rgb(220, 20, 60) = cmyk(0%, 91%, 73%, 14%). Rounding is stated, and everything runs in your browser.

Client-Side (Private)
Example colour Crimson
RGB rgb(220, 20, 60)
CMYK cmyk(0%, 91%, 73%, 14%)
Rounding Channels round half up
Live Preview
e.g. rgb(220, 20, 60)
Quick try:
Converted Result (CMYK)

How to convert RGB to CMYK by hand

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

  1. Divide R, G and B by 255.
  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: crimson (rgb(220, 20, 60))

Worked Hand Example
StepValue
K = 1 − max13.73%
Cyan0%
Magenta90.91%
Yellow72.73%
Rounded resultcmyk(0%, 91%, 73%, 14%)
rgb(220, 20, 60) = cmyk(0%, 91%, 73%, 14%) (crimson).

Common colours: RGB to CMYK

CSS named colours converted both ways.

ColourRGBCMYK
Red rgb(255, 0, 0) cmyk(0%, 100%, 100%, 0%)
Orange rgb(255, 165, 0) cmyk(0%, 35%, 100%, 0%)
Gold rgb(255, 215, 0) cmyk(0%, 16%, 100%, 0%)
Green rgb(0, 128, 0) cmyk(100%, 0%, 100%, 50%)
Teal rgb(0, 128, 128) cmyk(100%, 0%, 0%, 50%)
Blue rgb(0, 0, 255) cmyk(100%, 100%, 0%, 0%)
Indigo rgb(75, 0, 130) cmyk(42%, 100%, 0%, 49%)
Purple rgb(128, 0, 128) cmyk(0%, 100%, 0%, 50%)
Pink rgb(255, 192, 203) cmyk(0%, 25%, 20%, 0%)
Brown rgb(165, 42, 42) cmyk(0%, 75%, 75%, 35%)
Gray rgb(128, 128, 128) cmyk(0%, 0%, 0%, 50%)
Black rgb(0, 0, 0) cmyk(0%, 0%, 0%, 100%)
White rgb(255, 255, 255) cmyk(0%, 0%, 0%, 0%)

Is this colour readable?

Contrast of crimson (cmyk(0%, 91%, 73%, 14%)) against white and black (WCAG 2.x).

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

Related converters

Quickly jump to other conversions and color systems

Education

About this converter

01

Exact and Explained

Paste a RGB colour and get the CMYK value. Example: crimson is rgb(220, 20, 60) = cmyk(0%, 91%, 73%, 14%). 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.

crimson is cmyk(0%, 91%, 73%, 14%) (in RGB: rgb(220, 20, 60)). These are CSS named colour values.

1. Divide R, G and B by 255. 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