Free tool · Developer tools
RGB to CMYK converter
This RGB to CMYK converter turns three screen channels into four ink percents. Red 52, green 152 and blue 219 give cmyk(76%, 31%, 0%, 14%), with the hex code #3498DB shown beside a preview.
- Free
- No sign-up
- Runs in your browser
cmyk(76%, 31%, 0%, 14%)#3498DB from R 52 G 152 B 219
- C 76%
- M 31%
- Y 0%
- K 14%
- Cyan, magenta, yellow, black to one decimal
- 76.3, 30.6, 0, 14.1
- Brightest channel
- 219 of 255
- Black key from the brightest channel
- 14.1%
- Hex code of the input
- #3498DB
- Ink numbers added up
- 121%
| Color | R, G, B | C, M, Y, K (%) | Hex |
|---|---|---|---|
| White | 255, 255, 255 | 0, 0, 0, 0 | #FFFFFF |
| Black | 0, 0, 0 | 0, 0, 0, 100 | #000000 |
| Red | 255, 0, 0 | 0, 100, 100, 0 | #FF0000 |
| Green | 0, 255, 0 | 100, 0, 100, 0 | #00FF00 |
| Blue | 0, 0, 255 | 100, 100, 0, 0 | #0000FF |
| Orange | 255, 165, 0 | 0, 35, 100, 0 | #FFA500 |
| Mid gray | 128, 128, 128 | 0, 0, 0, 50 | #808080 |
How to use the RGB to CMYK Converter
- Type Red, Green and Blue as whole numbers from 0 to 255. A decimal such as 52.5 gets an error, because the hex code needs whole channels.
- Read the four percents under CMYK color, with one decimal in the list below them.
- Press Copy CMYK to keep the four numbers for a print file or a style note.
- Compare your color with the table of common colors at the bottom.
How do you convert RGB to CMYK?
Start from the brightest of the three channels. The black key is K = 1 − max(R, G, B) ÷ 255. Then each ink is the gap between that brightest channel and its own channel, divided by the brightest channel: C = (max − R) ÷ max, M = (max − G) ÷ max, Y = (max − B) ÷ max. For 52, 152, 219 the brightest channel is 219, so K = 1 − 219 ÷ 255 = 14.1%, cyan is (219 − 52) ÷ 219 = 76.3%, magenta is (219 − 152) ÷ 219 = 30.6% and yellow is 0%, because blue is the brightest channel itself.
Rounded to whole percents that is 76, 31, 0, 14. The tool shows the rounded values as the answer and the one-decimal values in the list, so you can pick the precision your design program wants.
Pure black has a maximum of 0, which would divide by zero. The formula is defined as C 0, M 0, Y 0, K 100 for that single case, and the tool does the same.
| Color | R, G, B | C, M, Y, K (%) | Hex |
|---|---|---|---|
| White | 255, 255, 255 | 0, 0, 0, 0 | #FFFFFF |
| Black | 0, 0, 0 | 0, 0, 0, 100 | #000000 |
| Red | 255, 0, 0 | 0, 100, 100, 0 | #FF0000 |
| Green | 0, 255, 0 | 100, 0, 100, 0 | #00FF00 |
| Blue | 0, 0, 255 | 100, 100, 0, 0 | #0000FF |
| Orange | 255, 165, 0 | 0, 35, 100, 0 | #FFA500 |
| Mid gray | 128, 128, 128 | 0, 0, 0, 50 | #808080 |
What does the K value do when a color gets darker?
Scaling all three channels by the same factor leaves the ink ratios alone and only moves the black key. The table starts from the example color and keeps 75%, 50% and 25% of each channel. Cyan stays near 76 and magenta near 31 while K climbs, so a darker version of a color is the same hue with more black.
That is also why grays have only a K value. A mid gray of 128, 128, 128 gives 0, 0, 0, 50: with equal channels the gap to the brightest one is 0, so cyan, magenta and yellow are 0 and the black key carries the whole shade.
| Brightness | R, G, B | C, M, Y, K (%) | Hex |
|---|---|---|---|
| 100% | 52, 152, 219 | 76, 31, 0, 14 | #3498DB |
| 75% | 39, 114, 164 | 76, 30, 0, 36 | #2772A4 |
| 50% | 26, 76, 110 | 76, 31, 0, 57 | #1A4C6E |
| 25% | 13, 38, 55 | 76, 31, 0, 78 | #0D2637 |
Why will my printed color not match the screen?
This is the textbook conversion: simple arithmetic on the numbers you type. It has no knowledge of a press, a paper or a set of inks, and it keeps every RGB color inside the CMYK range by construction. Real print workflows use color profiles. A profile reduces the very bright colors a screen can show, such as strong greens and blues, to what the inks can reach, so a design program may give different percents for the same RGB values.
Treat the output as a clear starting point for a document, a web to print note or a quick check. For a job that must match a proof, convert with the profile your printer names and compare with a printed sample.
Which results are worth checking by hand?
Orange at 255, 165, 0 gives 0, 35, 100, 0: the brightest channel is red at 255, so cyan is 0, yellow is 100 because blue is 0, and magenta is (255 − 165) ÷ 255 = 35%. A very dark color such as 10, 20, 30 gives 67, 33, 0, 88, mostly black key with a little cyan and magenta.
A hex code is three RGB values in base 16. The pairs 34, 98 and DB in #3498DB are 52, 152 and 219 in ordinary numbers, so a web color can be converted by reading each pair first and typing the three numbers. The facts list repeats the hex code of what you typed, which is a quick way to confirm that you copied the pairs correctly before you use the result in a print file.
The ink numbers added up can pass 100%. The list shows that sum as plain arithmetic, with no judgment, since the limit depends on the press and the paper.
Use it with
- CMYK to RGB Converter: CMYK to RGB converter: enter cyan, magenta, yellow and black percents to get RGB values, a hex code and a color preview. The formula is shown.
- Color Palette Generator: harmonious palettes from a seed color.
- Color Mixer: mix two or more colors and get the result codes.
Questions
What is the formula for RGB to CMYK?
K = 1 − max(R, G, B) ÷ 255, then C = (max − R) ÷ max, M = (max − G) ÷ max and Y = (max − B) ÷ max, where max is the largest of the three channels. For 52, 152, 219 the result is cmyk(76%, 31%, 0%, 14%).
What is RGB 255, 0, 0 in CMYK?
Pure red is 0, 100, 100, 0, meaning no cyan, full magenta, full yellow and no black.
What is RGB 0, 0, 0 in CMYK?
It is 0, 0, 0, 100. The formula would divide by zero for black, so it is defined as full black key and nothing else.
Can I convert a hex code to CMYK here?
Write the hex code as three base 16 pairs and type them as decimal numbers. For #3498DB that is 52, 152, 219. The tool also shows the hex code of the numbers you type, so you can check you copied it right.
Why do two programs give different CMYK numbers?
Some use this plain formula and some apply a color profile for a chosen press. The profile changes the numbers, mainly for strong, bright colors.
Are my color numbers uploaded?
No. The arithmetic runs in this page and the numbers you type are not sent anywhere.
The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.