RGB to CMYK converter
Royal blue rgb(65, 105, 225) is about CMYK 71, 53, 0, 12. K = 1 − the largest RGB value (as 0-1); C, M and Y follow from the rest.
#4169E1| RGB | rgb(65, 105, 225) | |
|---|---|---|
| HSL | hsl(225, 73%, 57%) | |
| HSV | hsv(225, 71%, 88%) | |
| HWB | hwb(225 25% 12%) | |
| CMYK | cmyk(71, 53, 0, 12) | |
| OKLCH | oklch(0.56 0.19 266) | |
| OKLAB | oklab(0.560 -0.012 -0.188) | |
| LAB | lab(46.8 17.8 -66.7) | |
| LCH | lch(46.8 69.0 285) | |
| DECIMAL | 4286945 | |
| ≈ | Royal blue |
Free·No sign-up·Works offline after the first visit
- 1. Divide each RGB number by 255: R = 0.255, G = 0.412, B = 0.882.
- 2. K (black) = 1 − the largest of the three = 1 − 0.882 = 0.118.
- 3. C = (1 − R − K) ÷ (1 − K) = 0.711; M = (1 − G − K) ÷ (1 − K) = 0.533; Y = (1 − B − K) ÷ (1 − K) = 0.
- 4. Multiply by 100: CMYK 71, 53, 0, 12.
Common colors in RGB and CMYK
| color | RGB | CMYK |
|---|---|---|
| White | rgb(255, 255, 255) | 0, 0, 0, 0 |
| Black | rgb(0, 0, 0) | 0, 0, 0, 100 |
| Red | rgb(255, 0, 0) | 0, 100, 100, 0 |
| Lime | rgb(0, 255, 0) | 100, 0, 100, 0 |
| Blue | rgb(0, 0, 255) | 100, 100, 0, 0 |
| Yellow | rgb(255, 255, 0) | 0, 0, 100, 0 |
| Cyan | rgb(0, 255, 255) | 100, 0, 0, 0 |
| Magenta | rgb(255, 0, 255) | 0, 100, 0, 0 |
| Gray | rgb(128, 128, 128) | 0, 0, 0, 50 |
| Orange | rgb(255, 165, 0) | 0, 35, 100, 0 |
| Purple | rgb(128, 0, 128) | 0, 100, 0, 50 |
| Gold | rgb(255, 215, 0) | 0, 16, 100, 0 |
| HEX | RGB | |
|---|---|---|
| White | #FFFFFF | rgb(255, 255, 255) |
| Black | #000000 | rgb(0, 0, 0) |
| Red | #FF0000 | rgb(255, 0, 0) |
| Green | #008000 | rgb(0, 128, 0) |
| Blue | #0000FF | rgb(0, 0, 255) |
| Yellow | #FFFF00 | rgb(255, 255, 0) |
| Orange | #FFA500 | rgb(255, 165, 0) |
| Purple | #800080 | rgb(128, 0, 128) |
| Pink | #FFC0CB | rgb(255, 192, 203) |
| Gray | #808080 | rgb(128, 128, 128) |
| Gold | #FFD700 | rgb(255, 215, 0) |
| Navy blue | #000080 | rgb(0, 0, 128) |
How to convert RGB to CMYK by hand
Screens mix light (RGB); printers mix ink (CMYK: cyan, magenta, yellow and key, which is black). The simple formula above gives a good first value. It treats the inks as perfect, so real prints differ: a print shop uses a color profile for its paper and press, and the numbers it gives can be a few points away from these.
Some screen colors can't be printed. Very bright greens, blues and oranges, such as #00FF00, are outside what CMYK inks can show, and any converter has to make them duller. There is no way to convert RGB to CMYK "without losing color" for those; you can only choose how the loss looks.
In Photoshop and Illustrator
In Photoshop, choose Image › Mode › CMYK Color. Photoshop uses the CMYK profile set in Edit › Color Settings; ask your printer which one to use. In Illustrator, choose File › Document Color Mode › CMYK Color. Convert a copy of the file, because the change can't be fully undone once you save it. To check how a color will print before converting, use View › Proof Colors.
Questions and answers
How do I convert RGB to CMYK in Photoshop?
Choose Image › Mode › CMYK Color, after setting your printer's profile in Edit › Color Settings.
How do I convert RGB to CMYK in Illustrator?
Choose File › Document Color Mode › CMYK Color. Work on a copy of the file.
Can I convert RGB to CMYK without losing color?
Not for very bright colors: inks can't print them. Most other colors convert with a small change.
What is the CMYK code for pure red?
rgb(255, 0, 0) is CMYK 0, 100, 100, 0 with the simple formula.