RGB to CMYK converter

rgb(37, 99, 235) converts to cmyk(84%, 58%, 0%, 8%): divide each channel by 255, take K from the largest channel, then split the remaining ink across cyan, magenta and yellow.

To convert RGB to CMYK, divide each channel by 255, set K = 1 − max(R, G, B), then C = (1 − R − K) / (1 − K), and the same for M and Y. The converter below does it for you and shows the swatch.

How to convert RGB to CMYK

  1. Divide the red, green and blue channels by 255 to get values between 0 and 1.
  2. Set K = 1 − max(R, G, B), the amount of black ink needed.
  3. Calculate C = (1 − R − K) / (1 − K), then the same for M from green and Y from blue, and multiply each by 100 to read the print percentages.

CMYKcmyk(84%, 58%, 0%, 8%)
HEX#2563eb
RGBrgb(37, 99, 235)

Worked example: rgb(37, 99, 235)

For rgb(37, 99, 235) the largest channel is blue, so K = 1 − 235/255 = 0.08, which rounds to 8%. The remaining ink is split over the other channels:

  • C = (1 − 37/255 − 0.08) / (1 − 0.08) = 0.84 → 84%
  • M = (1 − 99/255 − 0.08) / (1 − 0.08) = 0.58 → 58%
  • Y = 0 because blue is the largest channel → 0%

The result is cmyk(84%, 58%, 0%, 8%).

Common RGB colours in CMYK

Colourrgb()CMYKHEX
Redrgb(255, 0, 0)cmyk(0%, 100%, 100%, 0%)#ff0000
Greenrgb(0, 128, 0)cmyk(100%, 0%, 100%, 50%)#008000
Bluergb(0, 0, 255)cmyk(100%, 100%, 0%, 0%)#0000ff
Whitergb(255, 255, 255)cmyk(0%, 0%, 0%, 0%)#ffffff
Blackrgb(0, 0, 0)cmyk(0%, 0%, 0%, 100%)#000000
Mid greyrgb(128, 128, 128)cmyk(0%, 0%, 0%, 50%)#808080
Orangergb(255, 102, 0)cmyk(0%, 60%, 100%, 0%)#ff6600

Why RGB to CMYK is only an approximation

This converter uses the device-independent formula for a quick RGB to CMYK estimate. Real print depends on the paper, inks and press, so print shops use ICC profiles tuned to their equipment. Treat these values as a starting point and ask your printer for a proof before a large run.

RGB to CMYK converter FAQs

How do I convert RGB to CMYK?

Divide each RGB channel by 255, set K = 1 − the largest of those fractions, then work out C = (1 − R − K) / (1 − K) and the same for M from G and Y from B. Multiply the results by 100 to get print percentages, or paste rgb(37, 99, 235) into the converter above for an instant answer.

Why do my colours look duller in CMYK?

Because CMYK has a smaller gamut than a bright screen. Neon greens, vivid oranges and electric blues sit outside the range that process inks can reproduce on paper, so the nearest printable colour is less saturated. That is normal, not an error in the conversion.

Is RGB to CMYK exact?

No. This converter gives a device-independent estimate that is a good starting point. Exact output depends on the paper, inks and press, so ask your printer for the ICC profile they use and a physical proof before a large run.

Should I send RGB or CMYK files to a printer?

Ask the printer first. Many commercial printers prefer CMYK with their own ICC profile applied, while some modern digital presses and photo labs accept RGB and convert it themselves. Sending the profile they ask for avoids surprises on press.

Related color tools

More color tools

Image tools

CSS generators

Image & SVG tools

Typography & units

More free tools

All free tools