Screens show red, green and blue, and printers use cyan, magenta, yellow and black ink. The RGB to CMYK converter takes the red, green and blue values from 0 to 255 and gives the cyan, magenta, yellow and black percentages with the total ink coverage.
How the calculation works
- Divide each channel by 255 to get red, green and blue values between 0 and 1.
- Black (K) = 1 − the largest of the three values. This is the darkness left once the strongest channel is accounted for.
- Cyan = (1 − red − K) ÷ (1 − K), magenta = (1 − green − K) ÷ (1 − K) and yellow = (1 − blue − K) ÷ (1 − K). If K is 1, the color is black and the three are 0.
- Total ink coverage = C + M + Y + K, in percent. Many printers limit it to about 240% to 300% so that the ink dries.
Example
The red rgb(231, 76, 60) has channels of 0.906, 0.298 and 0.235. The largest is red, so K = 1 − 0.906 = 9.4%. Cyan is (1 − 0.906 − 0.094) ÷ 0.906 = 0%, magenta is (1 − 0.298 − 0.094) ÷ 0.906 = 67.1% and yellow is (1 − 0.235 − 0.094) ÷ 0.906 = 74.0%. The total ink is about 151%.
Why it matters
Designers who make a logo on screen and then print a flyer need the CMYK values for the print file. A quick conversion gives a first idea, and a check of total ink helps to avoid a file that a printer will reject.
Good to know
Treat the result as an approximation. Professional work uses a color-managed conversion, a printer’s profile and a printed proof. Colors outside the CMYK range, such as bright cyan and neon green, cannot be reproduced and are brought to the nearest printable value. Pure black text should use K only (0, 0, 0, 100) and not the converted rich value, to print sharp.
Related tools
The print size calculator relates pixels to the size of a print and the photo storage calculator estimates the disk space of images.