All Science Fair Projects

Science Fair Project Encyclopedia for Schools!

 Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

CMYK color model

(Redirected from CMYK)

CMYK (or sometimes YMCK) is a subtractive color model used in color printing. This color model is based on mixing pigments of the following colors in order to make other colors:

The mixture of ideal CMY colors is subtractive (Cyan, Magenta and Yellow printed together on white result to black). CMYK works through light absorption . The colors that are seen are from the part of light that is not absorbed. In CMYK magenta plus yellow produces red, magenta plus cyan makes blue, cyan plus yellow generates green and the combination of cyan, magenta and yellow form black.

Because the 'black' generated by mixing the subtractive primaries is not as dense as that of a genuine black ink (one that absorbs throughout the visible spectrum), four-color printing uses black ink in addition to the subtractive primaries yellow, magenta and cyan.

Use of four-color printing generates a superior final printed result with greater contrast. However the color a person sees on a computer screen is often slightly different from the color of the same object on a printout since CMYK and the RGB color model used in computer monitors have different gamuts. RGB color is made by the emission of light (additive color) whereas CMYK works by the absorption of it (subtractive color).

 Contents

Conversions

Note that the conversions here are best described as "nominal". They will produce a reversible conversion from RGB to CMYK and back again (though not vice versa). However, the CMYK colors may print wildly differently from how the RGB colors display on a monitor. There is no single "good" conversion rule between RGB and CMYK, because neither RGB nor CMYK is an absolute color space.

Converting between RGB and CMYK

To convert between RGB and CMYK, an intermediate CMY value is used. Color values are represented as a vector, with each color component varying from 0.0 (no color) to 1.0 (fully saturated color):

 tCMYK = {C,M,Y,K} is the CMYK quadruple on $\left[0, 1\right]^4$, tCMY = {C,M,Y} is the CMY triple on $\left[0, 1\right]^3$, tRGB = {R,G,B} is the RGB triple on $\left[0, 1\right]^3$.

Converting CMYK to RGB

To convert, we first convert CMYK to CMY, then convert the CMY value to RGB

Converting now

tCMYK = {C,M,Y,K}

then

tCMY = {C',M',Y'} = {C(1 - K) + K,M(1 - K) + K,Y(1 - K) + K}

and

tRGB = {R,G,B} = {1 - C',1 - M',1 - Y'}

or substituting in

tRGB = {1 - (C(1 - K) + K),1 - (M(1 - K) + K),1 - (Y(1 - K) + K)} = {1 - C(1 - K) - K,1 - M(1 - K) - K,1 - Y(1 - K) - K}

Converting RGB to CMYK

Converting RGB → CMY, with the same color vectors as before:

Converting now

tRGB = {R,G,B}

converting to CMY

tCMY = {C',M',Y'} = {1 - R,1 - G,1 - B}

and then to CMYK:

if min{C',M',Y'} = 1
then
tCMYK = {0,0,0,1}
else
K = min{C',M',Y'}
$t_{CMYK} = \left\{ \frac{C' - K}{1 - K}, \frac{M' - K}{1 - K}, \frac{Y' - K}{1 - K}, K \right\}$