Photo & Printing
How to Convert RGB to CMYK for Printing
You can estimate CMYK percentages from RGB using a simple formula, but preparing accurate print color requires the correct ICC profile and the printer’s workflow. A mathematical converter explains channel values; it cannot predict a particular ink, paper or press combination.

RGB and CMYK describe different color systems
RGB represents red, green and blue light channels. In the common eight-bit notation, each channel ranges from 0 to 255. Black is (0, 0, 0), while all channels at 255 represent white within that RGB system. A screen combines emitted light, and its appearance also depends on display settings and color management.
CMYK represents cyan, magenta, yellow and black ink channels, usually written as percentages. Printed ink changes how light reflects from the paper. Paper brightness, ink behavior and printing conditions affect the result, so identical-looking numbers are not enough to establish an accurate screen-to-print match.
Some screen colors fall outside a particular printing process’s reproducible range, or gamut. Converting them involves a color-management decision rather than preserving every screen color exactly. A bright screen preview should therefore not be treated as a promise of the finished print.
HEX is another way to write RGB
A six-digit HEX color encodes three RGB channel values in hexadecimal. Each pair ranges from 00 to FF, corresponding to decimal 0 to 255. For example, #FF0000 is RGB (255, 0, 0). Short HEX #F80 expands to #FF8800, or RGB (255, 136, 0).
A HEX code is not a CMYK ink specification. It also does not, by itself, provide a printer profile. Record the intended RGB color space when exchanging professional artwork instead of assuming six characters fully describe the color-management workflow.
Apply the mathematical conversion
First normalize the channels to fractions between 0 and 1. Extract a black component from the largest normalized channel, then calculate cyan, magenta and yellow relative to the non-black portion:
r = R ÷ 255; g = G ÷ 255; b = B ÷ 255
K = 1 − max(r, g, b)
If K = 1: C = M = Y = 0
Otherwise:
C = (1 − r − K) ÷ (1 − K)
M = (1 − g − K) ÷ (1 − K)
Y = (1 − b − K) ÷ (1 − K)
Multiply C, M, Y and K by 100 for percentage output.
The special case for black avoids division by zero. RGB (0, 0, 0) produces C = M = Y = 0% and K = 100%. White produces four zero percentages. These are properties of the mathematical model, not press-specific recipes for rich black or white ink.
Use the RGB to CMYK Converter to inspect this calculation, compare a HEX input and copy the channel values. The preview remains an RGB screen representation even when you enter CMYK percentages.
Worked example: RGB (102, 153, 204)
The HEX representation is #6699CC. Normalized RGB is (0.4, 0.6, 0.8), so K = 1 − 0.8 = 0.2. The remaining denominator is 1 − 0.2 = 0.8.
| Channel | Calculation | Percentage |
|---|---|---|
| Cyan | (1 − 0.4 − 0.2) ÷ 0.8 | 50% |
| Magenta | (1 − 0.6 − 0.2) ÷ 0.8 | 25% |
| Yellow | (1 − 0.8 − 0.2) ÷ 0.8 | 0% |
| Black | 0.2 | 20% |
For the reverse calculation, use fractions again: R = 255 × (1 − C) × (1 − K), with corresponding formulas for green and blue. This returns (102, 153, 204). Other inputs may require rounding RGB to whole channel values. A reverse conversion can discard distinctions between CMYK mixtures that map to the same mathematical RGB color.
Use ICC profiles for actual print preparation
An ICC profile describes color behavior for a device or color space. A color-managed conversion uses the source profile and the intended output profile, rather than treating every RGB document or every press as interchangeable. The output profile must suit the printing process and paper.
Ask the printer which profile, file format and submission settings it expects. Some workflows request an RGB file and perform the output conversion themselves; others expect a prepared CMYK file. Converting everything to an arbitrary CMYK space before asking can create avoidable conversions.
Soft proofing can help preview output limits in color-managed software, provided the display and viewing setup are appropriate. For color-critical work, discuss a suitable proof with the printer. A generic browser preview or mathematical percentage list does not substitute for that process.
Avoid common handoff mistakes
Assigning a different profile and converting to that profile are different operations. Assignment changes how existing numbers are interpreted; conversion changes numbers to preserve appearance as far as the destination allows. Verify which operation your software is performing before exporting.
Do not prescribe a generic rich-black mixture or total ink limit from this converter. Those depend on the printer’s process. Likewise, do not use a text contrast check as proof that artwork will print correctly: the Color Contrast Checker evaluates screen color contrast, a separate question.
Keep the original color-managed artwork so another export can be made if the output requirements change. Check the final file’s profile and the printer’s requested settings instead of repeatedly converting the same copy between RGB and CMYK.
Use the calculator
RGB to CMYK Converter
Convert RGB, HEX and approximate CMYK colors.