XhCode Online Converter Tools

RGB CMYK Converter

  Red(R:0~255) 

Green(G:0~255)

  Blue(B:0~255) 
C M Y K





RGB to CMYK

RGB to CMYK refers to the process of converting a color from the RGB (Red, Green, Blue) color model to the CMYK (Cyan, Magenta, Yellow, Key/Black) color model. These two color models are used in different contexts: RGB is used for screens and digital devices, while CMYK is used for printing.

What is RGB?
RGB is an additive color model used in digital devices like monitors and screens. It works by combining red, green, and blue light in different intensities (ranging from 0 to 255) to create colors.
What is CMYK?
CMYK is a subtractive color model used in color printing. It uses Cyan, Magenta, Yellow, and Key/Black as the primary colors for printing. In CMYK, the values range from 0% to 100%.
Unlike RGB, where adding colors makes light, CMYK works by subtracting light from a white background, using ink to absorb certain wavelengths.
How to Convert RGB to CMYK:
The conversion from RGB to CMYK involves the following steps:

Normalize the RGB values:

First, convert the RGB values from the range of 0–255 to the range of 0–1 by dividing each of the RGB values by 255.
R' = R / 255, G' = G / 255, B' = B / 255
Find the Key (Black) value:

K = 1 - max(R', G', B'). This gives the amount of black ink needed.
Calculate the Cyan, Magenta, and Yellow values:

If K < 1 (i.e., no pure black):
C = (1 - R' - K) / (1 - K)
M = (1 - G' - K) / (1 - K)
Y = (1 - B' - K) / (1 - K)
If K = 1 (pure black), then C = M = Y = 0.
Convert values to percentages:

Finally, multiply each CMYK value by 100 to get percentages.
Example Conversion:
For RGB(255, 99, 71):

Normalize RGB:

R' = 255 / 255 = 1.0
G' = 99 / 255 ≈ 0.388
B' = 71 / 255 ≈ 0.278
Find K:

K = 1 - max(1.0, 0.388, 0.278) = 1 - 1.0 = 0
Calculate CMY:

C = (1 - 1.0 - 0) / (1 - 0) = 0
M = (1 - 0.388 - 0) / (1 - 0) ≈ 0.612
Y = (1 - 0.278 - 0) / (1 - 0) ≈ 0.722
Convert to percentages:

C = 0%
M ≈ 61.2%
Y ≈ 72.2%
K = 0%
So, the CMYK equivalent of RGB(255, 99, 71) is C: 0%, M: 61.2%, Y: 72.2%, K: 0%.

TOP