RGB to CMYK converter
Turn a screen colour into cyan, magenta, yellow and black ink percentages — and see exactly how the numbers are calculated.
| HEX | #E67828 |
|---|---|
| RGB | rgb(230, 120, 40) |
| HSL | hsl(25, 79%, 53%) |
| CMYK | cmyk(0%, 48%, 83%, 10%) |
Have CMYK and need RGB/HEX? Convert back
The RGB to CMYK formula
- Divide R, G and B by 255 to get R′, G′, B′ between 0 and 1.
- K = 1 − max(R′, G′, B′).
- C = (1 − R′ − K) ÷ (1 − K), M = (1 − G′ − K) ÷ (1 − K), Y = (1 − B′ − K) ÷ (1 − K).
- Multiply by 100 for percentages. If K = 1 (black), C, M and Y are 0.
Worked example
rgb(230, 120, 40) → R′ .902, G′ .471, B′ .157
K = 1 − .902 = .098 → 10%
C = 0%, M = 48%, Y = 83%
Result: cmyk(0%, 48%, 83%, 10%)Good to know
- This is the device-independent formula. A print shop converts with an ICC profile for their press and paper (FOGRA39 in Europe, GRACoL/SWOP in North America), which gives different — and more accurate — numbers.
- Bright screen colours like rgb(0, 255, 0) are outside what CMYK inks can reproduce; they will print duller.
- For rich black on press, designers often use something like C60 M40 Y40 K100 rather than K100 alone.
Need the colour from an image first? Use the colour picker from image — it shows all formats at once.
How RGB turns into CMYK, one step at a time
Screens add light (RGB); presses subtract it with ink (CMYK). The standard web formula first pulls out as much black (K) as possible, then works out how much cyan, magenta and yellow are needed for the rest.
- 1. Scale to 0–1 R′=0.902 G′=0.471 B′=0.157
- 2. Black K = 1 − max(R′,G′,B′) = 0.098
- 3. Cyan C = (1 − R′ − K) ÷ (1 − K) = 0%
- 4. Magenta M = (1 − G′ − K) ÷ (1 − K) = 48%
- 5. Yellow Y = (1 − B′ − K) ÷ (1 − K) = 83%
Try pure grey (all three sliders equal): C, M and Y drop to zero and only black ink is used. Real print shops go further with ICC profiles such as FOGRA39 or GRACoL, which is why their numbers can differ from any online converter.
Common colours: RGB and CMYK reference
Basic web colours and a few popular named shades.
| Colour | RGB | CMYK |
|---|---|---|
| White | rgb(255, 255, 255) | cmyk(0%, 0%, 0%, 0%) |
| Black | rgb(0, 0, 0) | cmyk(0%, 0%, 0%, 100%) |
| Red | rgb(255, 0, 0) | cmyk(0%, 100%, 100%, 0%) |
| Lime | rgb(0, 255, 0) | cmyk(100%, 0%, 100%, 0%) |
| Blue | rgb(0, 0, 255) | cmyk(100%, 100%, 0%, 0%) |
| Yellow | rgb(255, 255, 0) | cmyk(0%, 0%, 100%, 0%) |
| Cyan | rgb(0, 255, 255) | cmyk(100%, 0%, 0%, 0%) |
| Magenta | rgb(255, 0, 255) | cmyk(0%, 100%, 0%, 0%) |
| Silver | rgb(192, 192, 192) | cmyk(0%, 0%, 0%, 25%) |
| Grey | rgb(128, 128, 128) | cmyk(0%, 0%, 0%, 50%) |
| Maroon | rgb(128, 0, 0) | cmyk(0%, 100%, 100%, 50%) |
| Olive | rgb(128, 128, 0) | cmyk(0%, 0%, 100%, 50%) |
| Green | rgb(0, 128, 0) | cmyk(100%, 0%, 100%, 50%) |
| Purple | rgb(128, 0, 128) | cmyk(0%, 100%, 0%, 50%) |
| Teal | rgb(0, 128, 128) | cmyk(100%, 0%, 0%, 50%) |
| Navy | rgb(0, 0, 128) | cmyk(100%, 100%, 0%, 50%) |
| Orange | rgb(255, 165, 0) | cmyk(0%, 35%, 100%, 0%) |
| Coral | rgb(255, 127, 80) | cmyk(0%, 50%, 69%, 0%) |
| Gold | rgb(255, 215, 0) | cmyk(0%, 16%, 100%, 0%) |
| Tomato | rgb(255, 99, 71) | cmyk(0%, 61%, 72%, 0%) |
| Hot pink | rgb(255, 105, 180) | cmyk(0%, 59%, 29%, 0%) |
| Indigo | rgb(75, 0, 130) | cmyk(42%, 100%, 0%, 49%) |
| Chocolate | rgb(210, 105, 30) | cmyk(0%, 50%, 86%, 18%) |
| Slate grey | rgb(112, 128, 144) | cmyk(22%, 11%, 0%, 44%) |
| Sky blue | rgb(135, 206, 235) | cmyk(43%, 12%, 0%, 8%) |
Questions people ask
Why does my printed colour look duller than on screen?
Screens emit light and can show more saturated colours than ink on paper can reflect. Vivid greens, blues and oranges in RGB are often out of the CMYK gamut and get pulled in when printed.
Should I send RGB or CMYK files to the printer?
Ask your printer. Many modern print workflows prefer high-quality RGB or PDF/X files and convert with their own profile; others require CMYK. Either way, order a proof for colour-critical jobs.
Is this the same as Photoshop’s conversion?
No. Photoshop converts through a colour profile (by default U.S. Web Coated SWOP v2 or Coated FOGRA39), so its numbers differ. The formula here is the standard mathematical conversion.