CMYK color model

From Wikipedia, the free encyclopedia

Cyan, magenta, yellow, and key (black)
Cyan, magenta, yellow, and key (black)
Cyan, magenta & yellow subtractive model
Enlarge
Cyan, magenta & yellow subtractive model
An image along with its cyan, magenta, and yellow components.
Enlarge
An image along with its cyan, magenta, and yellow components.
The same image, this time represented by the CMYK model. It is evident that significantly less color ink would be necessary to print this image when key is used.
Enlarge
The same image, this time represented by the CMYK model. It is evident that significantly less color ink would be necessary to print this image when key is used.

CMYK 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 in 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 and cyan plus yellow generates green.

Contents

[edit] Why black ink is used

For several reasons, the 'black' generated by mixing the subtractive primaries is not ideal and so four-color printing uses black ink in addition to the subtractive primaries yellow, magenta, and cyan. The reasons for using black ink include:

  • A mixture of practical cyan, magenta, and yellow pigments rarely produces pure black because it is nearly impossible to create sufficiently pure pigments.
  • Mixing all three process color inks together merely to make black can make the paper rather wet, which is an issue in high speed printing where the paper must dry extremely rapidly to avoid marking the next sheet, and poor quality paper such as newsprint may break if it becomes too wet
  • Text is typically printed in black and includes fine detail (such as serifs); so to reproduce text using three inks without slight blurring would require impractically accurate registration (i.e. all three images would need to be aligned extremely precisely)
  • Using a unit amount of black ink rather than three unit amounts of the process color inks can lead to significant cost savings, especially because black ink is often less expensive than any of the color inks.

Black is referred to using the letter K (rather than the expected B) for key – a shorthand for the printing term key plate. This plate impressed the artistic detail of an image, usually in black ink. This use of the letter K also helped avoid confusion with the letter B as used in the acronym RGB.

The amount of black to use to replace amounts of the other ink is variable, and the choice depends on the technology, paper and ink in use. Processes called under color removal, under color addition, and gray component replacement are used to decide on the final mix, so that different CMYK recipes will be used depending on the printing task. Where black is mixed with the other colors, this is "blacker than black" and is referred to as rich black or registration black.

[edit] Comparison with RGB

Use of four-color printing generates a good final printed result with greater contrast. However, the color seen on a computer screen is often different from the color of the same object on a printout since CMYK and RGB have different gamuts. For example, pure blue (rgb 0, 0, 100%) is impossible to produce in CMYK. The nearest equivalent in CMYK is a dissimilar shade of blue-violet.

Computer (and other) screens use an RGB color space, which represent colors as additive mixtures of red, green and blue light (whose sum is white light). In printed materials, this light combination cannot be directly reproduced, so computer-generated images must be converted to the CMYK equivalent in ink colors.

[edit] Conversions

Note that the conversions here are best described as "nominal". They will produce an invertible conversion between RGB and a subset of CMYK; that is, one can take an RGB color and convert to certain CMYK colors, and from these CMYK colors obtain the corresponding, original RGB equivalents. However, conversion of CMYK colors in general to RGB colors is not invertible; that is, given a CMYK color which is converted to RGB, performing the former conversion may not give the original CMYK color. In addition, 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.

These conversions should never be used in commercial printing or any other application where color matching is important.

[edit] 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.

[edit] 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 \}\,
tCMY = {C',M',Y'}
= \{C(1-K)+K, M(1-K)+K, Y(1-K)+K \}\,
tRGB = {R,G,B}
= \{1-C', 1-M', 1-Y'\}\,
tRGB = {1 − (C(1 − K) + K),1 − (M(1 − K) + K),1 − (Y(1 − K) + K)}
= \{(1-C)(1-K), (1-M)(1-K), (1-Y)(1-K)\}\,

[edit] Mapping RGB to CMYK

This is a formula for mapping a given RGB color to one of many possible "semi-equivalent" CMYK colors. In this case: the CMYK color that uses the most black (K) and the least color (CMY). E.g. #808080 (gray, exactly halfway between black and white) will map to (0,0,0,0.5), and not to (0.5,0.5,0.5,0).

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

Converting now

t_{RGB} = \{R, G, B\}\,

converting to CMY

t_{CMY} = \{C', M', Y'\} = \{1-R, 1-G, 1-B\}\,

and then to CMYK:

if \min\{C', M', Y'\} = 1\,
then
t_{CMYK} = \{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\}\,

[edit] See also