RGB to CMYK or CMTK to RGB color conversion
R(0~255)

G(0~255)

B(0~255)

C M Y K





RGB to CMYK or CMTK to RGB color conversion

This is a color converter that runs on the web browser.It can convert RGB to CMYK, or convert CMYK to RGB.

RGB to CMYK conversion formula

The 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)

CMYK to RGB conversion formula

The R,G,B values are given in the range of 0..255.

The red (R) color is calculated from the cyan (C) and black (K) colors:

R = 255 × (1-C) × (1-K)

The green color (G) is calculated from the magenta (M) and black (K) colors:

G = 255 × (1-M) × (1-K)

The blue color (B) is calculated from the yellow (Y) and black (K) colors:

B = 255 × (1-Y) × (1-K)

RGB to CMYK color table