Color Conversion Tools

RGB to CMYK

Estimate CMYK ink percentages from red, green and blue channels. Good for a first print brief from a screen color, with the profile-free formula shown step by step.

RGB to CMYK

Edit a channel and see the color result immediately.

Swap direction

Enter RGB

RGB channels are whole numbers from 0 to 255.

CMYK result

Source color
Result color
cmyk(66.7%, 33.3%, 0%, 40%)

CMYK is an unprofiled screen estimate. Use an ICC profile and a print proof for production.

The conversion runs in your browser.

All formats

HEX
#336699
RGB
rgb(51, 102, 153)
HSL
hsl(210, 50%, 40%)
HSV
hsv(210°, 66.7%, 60%)
CMYK
cmyk(66.7%, 33.3%, 0%, 40%)
OKLCH
oklch(49.9% 0.099 250.4)
CSS
≈ steelblue

Tints and shades

Text contrast (WCAG)

Aa6.00:1On whiteAA
Aa3.50:1On blackLarge text only

Normal text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1.

How it was calculated

  1. R′ = 51 ÷ 255 = 0.2, G′ = 0.4, B′ = 0.6
  2. K = 1 − max(R′, G′, B′) = 0.4 = 40%
  3. C = (1 − R′ − K) ÷ (1 − K) = 66.7%, M = 33.3%, Y = 0%

Common colors in RGB and CMYK

Choose a color to load it into the converter.

ColorRGBCMYK
rgb(0, 0, 0)cmyk(0%, 0%, 0%, 100%)
rgb(255, 255, 255)cmyk(0%, 0%, 0%, 0%)
rgb(255, 0, 0)cmyk(0%, 100%, 100%, 0%)
rgb(0, 255, 0)cmyk(100%, 0%, 100%, 0%)
rgb(0, 0, 255)cmyk(100%, 100%, 0%, 0%)
rgb(255, 255, 0)cmyk(0%, 0%, 100%, 0%)
rgb(0, 255, 255)cmyk(100%, 0%, 0%, 0%)
rgb(255, 0, 255)cmyk(0%, 100%, 0%, 0%)
rgb(128, 128, 128)cmyk(0%, 0%, 0%, 49.8%)
rgb(128, 0, 0)cmyk(0%, 100%, 100%, 49.8%)
rgb(0, 128, 0)cmyk(100%, 0%, 100%, 49.8%)
rgb(0, 0, 128)cmyk(100%, 100%, 0%, 49.8%)
rgb(255, 165, 0)cmyk(0%, 35.3%, 100%, 0%)
rgb(70, 130, 180)cmyk(61.1%, 27.8%, 0%, 29.4%)
rgb(102, 51, 153)cmyk(33.3%, 66.7%, 0%, 40%)
rgb(255, 99, 71)cmyk(0%, 61.2%, 72.2%, 0%)

How to use

  1. Enter the red, green and blue channels from 0 to 255.
  2. Read cyan, magenta, yellow and black; the calculation panel shows black being extracted first.
  3. Use the estimate in your brief, and get final values from your printer's profile or a proof.

Examples

Teal

With red at 0, cyan is at full strength. Green and blue are equal at about half brightness, so black covers the darkness and magenta and yellow stay at 0%.

Input
rgb(0, 128, 128)
Output
cmyk(100%, 0%, 0%, 49.8%)

Why convert RGB to CMYK

You may have RGB values from a screenshot, a web stylesheet, a spreadsheet or a photo, and need to tell a printer what you want. Typical cases:

  • Office printing and quick flyers, where you just need reasonable ink values.
  • Briefing a designer or print shop with the intended color before they build the final file.
  • Checking whether a color is risky to print: needing a lot of three inks at once hints at a dark, possibly muddy result.

How the estimate is calculated

Scale the channels to 0–1. For rgb(0, 128, 128): R′ = 0, G′ = 0.502, B′ = 0.502.

  1. Black. K = 1 − max(R′, G′, B′) = 1 − 0.502 = 49.8%.
  2. The three colored inks, each relative to what black leaves: C = (1 − R′ − K) ÷ (1 − K) = 100%, M = (1 − G′ − K) ÷ (1 − K) = 0%, Y = (1 − B′ − K) ÷ (1 − K) = 0%.

So teal prints as full cyan with half black: cmyk(100%, 0%, 0%, 49.8%). For pure black the formula would divide by zero, so it is defined directly as 0/0/0/100.

Understand the limits

This gray component replacement style formula moves as much darkness as possible into black. That is economical with ink but is not how every press separates colors. Real-world separations depend on paper, total ink limit and the printer’s profile. Treat this page as communication, not as a color-managed conversion.

Going back from ink to screen? Use CMYK to RGB. To start from a HEX code instead, open HEX to CMYK.

Frequently asked questions

Is this the same CMYK my design software shows?

Usually not exactly. InDesign, Illustrator and Photoshop convert through an ICC profile for a particular press and paper. This page uses the simple, profile-free formula, which is a consistent starting point.

Why does pure black give 0/0/0/100?

The formula puts all darkness into the black ink. Printers sometimes prefer a rich black for large areas; ask them for their recommended mix.

Why do I see decimals?

Percentages are kept to one decimal so the estimate stays close to the screen color. Most print specs round to whole percentages.

Which RGB colors print badly?

Very saturated greens, blues and oranges, such as rgb(0, 255, 0), are outside most printers' range. The estimate still calculates, but the print will look duller.

Does the tool store my colors?

No. Everything runs locally in your browser.

Related tools