Jump to content

CMYK color model: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Cinexero (talk | contribs)
m Mapping RGB to CMYK: made these pretty PNGs too
added image
Line 1: Line 1:
{{unreferenced}}
{{unreferenced}}
[[Image:CMYK color swatches.svg|right|frame|Cyan, magenta, yellow, and key (black)]]
[[Image:CMYK color swatches.svg|right|frame|Cyan, magenta, yellow, and key (black)]]
[[Image:CMY_components.jpg|right|thumb|An image along with its cyan, magenta, and yellow components.]]
[[Image:CMYK_components.jpg|right|thumb|The same image, this time represented by the CYMK model. It is evident that significantly less color ink would be necessary to print this image when key is used.]]


'''CMYK''' (sometimes pronounced C-Mike, Smick, Cymkey (Simky) or spelled '''YMCK''' or '''CYM''') is a [[subtractive color|subtractive]] [[color model]] used in color [[printing]]. This color model is based on mixing pigments of the following [[color]]s in order to make other colors:
'''CMYK''' (sometimes pronounced C-Mike, Smick, Cymkey (Simky) or spelled '''YMCK''' or '''CYM''') is a [[subtractive color|subtractive]] [[color model]] used in color [[printing]]. This color model is based on mixing pigments of the following [[color]]s in order to make other colors:
Line 48: Line 50:


Converting now
Converting now
{|
:<math>t_{CMYK} = \{C, M, Y, K \}\,</math>
|-
then
:<math>t_{CMY} = \{C', M', Y' \} = \{C(1-K)+K, M(1-K)+K, Y(1-K)+K \}\,</math>
|align="right"|<math>t_{CMYK} </math>||<math>= \{C, M, Y, K \}\,</math>
|-
and
:<math>t_{RGB} = \{R, G, B \} = \{1-C', 1-M', 1-Y'\}\,</math>
|align="right"|<math>t_{CMY} </math>||<math>= \{C', M', Y' \}</math>
|-
or substituting in
:<math>t_{RGB} = \{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\}\,</math>
|||<math>= \{C(1-K)+K, M(1-K)+K, Y(1-K)+K \}\,</math>
|-

|align="right"|<math>t_{RGB} </math>||<math>= \{R, G, B \}</math>
|-
|||<math>= \{1-C', 1-M', 1-Y'\}\,</math>
|-
|align="right"|<math>t_{RGB} </math>||<math>= \{1 - (C(1-K)+K), 1 - (M(1-K)+K), 1 - (Y(1-K)+K)\}</math>
|-
|||<math>= \{1 - C(1-K)-K, 1 - M(1-K)-K, 1 - Y(1-K)-K\}\,</math>
|-
|}
=== Mapping RGB to CMYK ===
=== 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).
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).

Revision as of 05:25, 28 June 2006

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

CMYK (sometimes pronounced C-Mike, Smick, Cymkey (Simky) or spelled YMCK or CYM) 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.

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 is not pure black, but a dark murky color. This is because theoretically cyan, magenta and yellow mixed should create black, but do not because it is near impossible to create pure pigments to make it occur.
  • 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 positioned 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 can be less expensive than any of the color inks.

The black is referred to as K for key – a shorthand for the printing term key plate. This plate impressed the artistic detail of an image, usually in black ink.

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.

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 purple.

Computer (and other) screens use an RGB color space, representing 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.

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.

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

is the CMYK quadruple on ,
is the CMY triple on ,
is the RGB triple on .

Converting CMYK to RGB

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

Converting now

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

converting to CMY

and then to CMYK:

if
then
else

See also