RGB to CMYK conversion | ckmy to rgb
Enterred,greenandbluecolorlevels(0..255)andpresstheConvertbutton:CMYKtoRGBconversion►[1]RGBtoCMYKconversionformulaTheR,G,Bvaluesaredividedby255tochangetherangefrom0..255to0..1:R=R/255G=G/255B=B/255Theblackkey(K)coloriscalculatedfromthered(R),green(G)andblue(B)colors:K=1-max(R,G,B)Thecyancolor(C)iscalculatedfromthered(R)andblack(K)colors:C=(1-R-K)/(1-K)Themagentacolor(M)iscalculatedfromthegreen(G)andblack(K)colors:M=(1-G-K)/(1-K)Theyellowcolor(Y)iscalculatedfromtheblue(B)andblack(K)colors:Y=(...
Enter red, green and blue color levels (0..255) and press the Convert button:
CMYK to RGB conversion ►[1]
RGB to CMYK conversion formulaThe R,G,B values are divided by 255 to change the range from 0..255 to 0..1:
R = R/255
G = G/255
B = B/255
The black key (K) color is calculated from the red (R), green (G) and blue (B) colors:
K = 1-max(R, G, B)
The cyan color (C) is calculated from the red (R) and black (K) colors:
C = (1-R-K) / (1-K)
The magenta color (M) is calculated from the green (G) and black (K) colors:
M = (1-G-K) / (1-K)
The yellow color (Y) is calculated from the blue (B) and black (K) colors:
Y = (1-B-K) / (1-K)
RGB to CMYK table Color Colorname
(R,G,B) Hex (C,M,Y,K) Black (0,0,0) #000000 (0,0,0,1) White (255,255,255) #FFFFFF (0,0,0,0) Red (255,0,0) #FF0000 (0,1,1,0) ...