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
RGBrgb(65, 105, 225)
HSLhsl(225, 73%, 57%)
HSVhsv(225, 71%, 88%)
HWBhwb(225 25% 12%)
CMYKcmyk(71, 53, 0, 12)
OKLCHoklch(0.56 0.19 266)
OKLABoklab(0.560 -0.012 -0.188)
LABlab(46.8 17.8 -66.7)
LCHlch(46.8 69.0 285)
DECIMAL4286945
≈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

colorRGBCMYK
Whitergb(255, 255, 255)0, 0, 0, 0
Blackrgb(0, 0, 0)0, 0, 0, 100
Redrgb(255, 0, 0)0, 100, 100, 0
Limergb(0, 255, 0)100, 0, 100, 0
Bluergb(0, 0, 255)100, 100, 0, 0
Yellowrgb(255, 255, 0)0, 0, 100, 0
Cyanrgb(0, 255, 255)100, 0, 0, 0
Magentargb(255, 0, 255)0, 100, 0, 0
Grayrgb(128, 128, 128)0, 0, 0, 50
Orangergb(255, 165, 0)0, 35, 100, 0
Purplergb(128, 0, 128)0, 100, 0, 50
Goldrgb(255, 215, 0)0, 16, 100, 0
HEXRGB
White#FFFFFFrgb(255, 255, 255)
Black#000000rgb(0, 0, 0)
Red#FF0000rgb(255, 0, 0)
Green#008000rgb(0, 128, 0)
Blue#0000FFrgb(0, 0, 255)
Yellow#FFFF00rgb(255, 255, 0)
Orange#FFA500rgb(255, 165, 0)
Purple#800080rgb(128, 0, 128)
Pink#FFC0CBrgb(255, 192, 203)
Gray#808080rgb(128, 128, 128)
Gold#FFD700rgb(255, 215, 0)
Navy blue#000080rgb(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.