CIE XYZ Color Space
   HOME

TheInfoList



OR:

In 1931, the
International Commission on Illumination The International Commission on Illumination (usually abbreviated CIE for its French name Commission internationale de l'éclairage) is the international authority on light, illumination, colour, and colour spaces. It was established in 1913 a ...
(CIE) published the CIE 1931 color spaces which define the relationship between the
visible spectrum The visible spectrum is the spectral band, band of the electromagnetic spectrum that is visual perception, visible to the human eye. Electromagnetic radiation in this range of wavelengths is called ''visible light'' (or simply light). The optica ...
and human
color vision Color vision, a feature of visual perception, is an ability to perceive differences between light composed of different frequencies independently of light intensity. Color perception is a part of the larger visual system and is mediated by a co ...
. The CIE color spaces are mathematical models that comprise a "standard observer", which is a static idealization of the color vision of a normal human. A useful application of the CIEXYZ colorspace is that a mixture of two colors in some proportion lies on the straight line between those two colors. One disadvantage is that it is not perceptually uniform. This disadvantage is remedied in subsequent color models such as
CIELUV In colorimetry, the CIE 1976 ''L''*, ''u''*, ''v''* color space, commonly known by its abbreviation CIELUV, is a color space adopted by the International Commission on Illumination (CIE) in 1976, as a simple-to-compute transformation of the 1931 ...
and
CIELAB The CIELAB color space, also referred to as ''L*a*b*'', is a color space defined by the International Commission on Illumination (abbreviated CIE) in 1976. It expresses color as three values: ''L*'' for perceptual lightness and ''a*'' and ''b* ...
, but these and modern color models still use the CIE 1931 color spaces as a foundation. The CIE (from the French name " Commission Internationale de l'éclairage" - International Commission on Illumination) developed and maintains many of the standards in use today relating to colorimetry. The CIE color spaces were created using data from a series of experiments, where human test subjects adjusted red, green, and blue
primary color Primary colors are colorants or colored lights that can be mixed in varying amounts to produce a gamut of colors. This is the essential method used to create the perception of a broad range of colors in, e.g., electronic displays, color prin ...
s to find a visual match to a second, pure color. The original experiments were conducted in the mid-1920s by William David Wright using ten observers and John Guild using seven observers. The experimental results were combined, creating the CIE RGB color space. The CIE XYZ color space was derived from CIE RGB in an effort to simplify the math. These
color space A color space is a specific organization of colors. In combination with color profiling supported by various physical devices, it supports reproducible representations of colorwhether such representation entails an analog or a digital represe ...
s are fundamental tools for measuring color for industry, including inks, dyes, and paints, illumination, color imaging, etc. The CIE color spaces contributed to the development of color television, the creation of instruments for maintaining consistent color in manufacturing processes, and other methods of
color management Color management is the process of ensuring consistent and accurate colors across various devices, such as monitors, printers, and cameras. It involves the use of color profiles, which are standardized descriptions of how colors should be disp ...
.


Background


Color vision

Normal human
color vision Color vision, a feature of visual perception, is an ability to perceive differences between light composed of different frequencies independently of light intensity. Color perception is a part of the larger visual system and is mediated by a co ...
is
trichromatic Trichromacy or trichromatism is the possession of three independent channels for conveying color information, derived from the three different types of cone cells in the eye. Organisms with trichromacy are called trichromats. The normal expl ...
, which is enabled by three classes of cone cells (L, M & S). Each cone class contains a slightly different photopsin with a different
spectral sensitivity Spectral sensitivity is the relative efficiency of detection, of light or other signal, as a function of the frequency or wavelength of the signal. In visual neuroscience, spectral sensitivity is used to describe the different characteristics ...
. The spectral sensitivities are summarized by their peak wavelengths, which are at long ("L", ), medium ("M", ), and short ("S", ) wavelengths, sometimes shorthanded inexactly as red, green and blue cones, respectively. The differential excitation levels of these three cones comprise the tristimulus values, denoted "L", "M", and "S", and are the parameters that define the 3-dimensional "
LMS color space LMS (long, medium, short), is a color space which represents the response of the three types of Cone cell, cones of the human eye, named for their responsivity (sensitivity) peaks at long, medium, and short wavelengths. The numerical range is ...
", which is one of many color spaces devised to quantify human
color vision Color vision, a feature of visual perception, is an ability to perceive differences between light composed of different frequencies independently of light intensity. Color perception is a part of the larger visual system and is mediated by a co ...
. In principle, any human color sensation can be described by a set of tristimulus values. A continuous
spectral power distribution In radiometry, photometry (optics), photometry, and color science, a spectral power distribution (SPD) measurement describes the Power (physics), power per unit area per unit wavelength of an illumination (lighting), illumination (radiant exitan ...
of light S(\lambda) is converted to the discrete tristimulus values (in this case L, M & S) by integrating over a spectral sensitivity of one of the cone classes (\overline(\lambda), \overline(\lambda), or \overline(\lambda)): :\begin L &= \int_0^\infty S(\lambda)\,\overline(\lambda)\,d\lambda, \\ muM &= \int_0^\infty S(\lambda)\,\overline(\lambda)\,d\lambda, \\ muS &= \int_0^\infty S(\lambda)\,\overline(\lambda)\,d\lambda. \end These are all inner products and can be thought of as a projection of an infinite-dimensional spectrum to a three-dimensional color. This LMS color model is refined to the
LMS color space LMS (long, medium, short), is a color space which represents the response of the three types of Cone cell, cones of the human eye, named for their responsivity (sensitivity) peaks at long, medium, and short wavelengths. The numerical range is ...
when the spectral sensitivity " primaries" are defined according to the standard observer. The LMS color space can be further transformed into similar three-dimensional color spaces, such as RGB, XYZ, HSV or cognates thereof. The tristimulus values associated with a color space can be conceptualized as amounts of three
primary color Primary colors are colorants or colored lights that can be mixed in varying amounts to produce a gamut of colors. This is the essential method used to create the perception of a broad range of colors in, e.g., electronic displays, color prin ...
s in a trichromatic,
additive Additive may refer to: Mathematics * Additive function, a function in number theory * Additive map, a function that preserves the addition operation * Additive set-function see Sigma additivity * Additive category, a preadditive category with fin ...
color model In color science, a color model is an abstract mathematical model describing the way colors can be represented as tuples of numbers, typically as three or four values or color components. When this model is associated with a precise description ...
. In some color spaces, including the LMS and XYZ spaces, the primary colors used are not real colors in the sense that they cannot be generated in any
spectral power distribution In radiometry, photometry (optics), photometry, and color science, a spectral power distribution (SPD) measurement describes the Power (physics), power per unit area per unit wavelength of an illumination (lighting), illumination (radiant exitan ...
of light.


Metamerism and Grassmann's laws

Since a lot of information is lost during the conversion (projection) of a continuous light spectrum to tristimulus values, it follows that there are disparate spectra that can stimulate the same tristimulus values. These disparate spectra are known as metamers. For example, a monochromatic (yellow) light is ''metameric'' with a dichromatic light spectrum comprising 2 parts monochromatic (green) light and 1 part monochromatic (red) light (accounting for luminosity). In 1853,
Hermann Grassmann Hermann Günther Grassmann (, ; 15 April 1809 – 26 September 1877) was a German polymath known in his day as a linguist and now also as a mathematician. He was also a physicist, general scholar, and publisher. His mathematical work was littl ...
developed Grassmann's laws, which aimed to describe color mixing algebraically. These laws laid the theoretical framework necessary for color experiments performed by
Hermann von Helmholtz Hermann Ludwig Ferdinand von Helmholtz (; ; 31 August 1821 – 8 September 1894; "von" since 1883) was a German physicist and physician who made significant contributions in several scientific fields, particularly hydrodynamic stability. The ...
(remembered for popularizing the trichromatic theory) and
James Clerk Maxwell James Clerk Maxwell (13 June 1831 – 5 November 1879) was a Scottish physicist and mathematician who was responsible for the classical theory of electromagnetic radiation, which was the first theory to describe electricity, magnetism an ...
in the 1850's, and later in the experiments used to develop the CIE 1931 color spaces. The laws can be summarized in three principles: * Additivity: if a third light (z) is added equally to two metamers (a & b), the results are metamers (i.e. if a = b then a + z = b + z). * Proportionality: if the
luminance Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through, is emitted from, or is reflected from a particular area, and falls wit ...
s of two metamers are equally increased or reduced by some constant (m), the results are metamers (i.e. if a = b then a*m = b*m). * Transitivity: If one of two metamers is metameric with a third color, then all colors are metameric (i.e. If a = b and b = c, then a = c) These laws assume that human color vision is linear, which is approximately true, but non-linear effects (such as the
Helmholtz–Kohlrausch effect The Helmholtz–Kohlrausch effect (named after Hermann von Helmholtz and V. A. Kohlrausch) is a perceptual phenomenon wherein the intense saturation of spectral hue is perceived as part of the color's luminance. This brightness increase by sat ...
) are not considered in the CIE 1931 color model.


Origin

The CIE 1931 color spaces are 4 interrelated color spaces with the same origin. In the 1920s, two independent experiments on human color perception were conducted by W. David Wright with ten observers, and John Guild with seven observers. How their results laid the foundation of the CIE 1931 color spaces is described in this section.


CIE standard observer

These experiments sought to quantify the typical human chromatic response (color perception) and define it as the standard (colorimetric) observer. The standard observer is defined by the 3 color matching functions in one of the CIE 1931 color spaces. Due to the design of the experiments, the standard observer has the following constraints: * Due to the distribution of cones in the eye, the tristimulus values depend on the observer's
field of view The field of view (FOV) is the angle, angular extent of the observable world that is visual perception, seen at any given moment. In the case of optical instruments or sensors, it is a solid angle through which a detector is sensitive to elec ...
. The standard observer was limited to stimuli subtending the 2° arc inside the fovea of the retina. This angle was chosen owing to the belief that the color-sensitive cones resided within a 2° arc of the fovea. This original observer is often referred to as the ''2° Standard Observer'', in contrast to a later (and less commonly used) alternative using 10° stimuli and referred to as the ''10° standard observer'', which is discussed later. * It is applicable for brightnesses that range from mid-mesopic to photopic light. * It is applicable only to additive color mixing, not subtractive color mixing.


Color matching

The Wright–Guild color matching experiments were conducted using a circular color screen split into equal semicircles (a bipartite field). The screen was positioned at a distance from the subject (observer) such that its diameter subtended 2° of the subject's vision. In one half of the screen, a test (target) color was projected, while on the other half an observer-adjustable color was projected. The adjustable color was a mixture of three monochromatic primary colors, each with adjustable brightness. The subject would alter the brightness of each of the three primary beams until the halves appeared metameric. If the test color were simply a monochromatic color at wavelength λ, and if it could be matched by a combination of the three primaries at relative intensities \bar(\lambda), \bar(\lambda), and \bar(\lambda) respectively, then a tabulation of these values at various λ will estimate three functions of wavelength. These are the RGB color-matching functions. Any spectral distribution can be thought of as a combination of a number of monochromatic sources at varying intensities, so that (by Grassmann's laws) integrating the color-matching functions with that spectral distribution will yield the intensities of the three primaries necessary to match it. The problem is that the three primaries can only produce colors which lie within their gamut the triangle in color space formed by the primaries, which never touches the monochromatic locus nor the purple line except at the three primaries. In other words, there is no monochromatic target that can be matched by a combination of the three primaries, except at the wavelengths of the three primaries themselves. Matching a monochromatic target would require one of the primaries to have a negative brightness. While this is physically impossible, it can be approximated (relying on Grassmann's laws) by adding the negative primary to the target field instead of the adjustment field, thereby allowing a match to be made with negative primary brightness. For wavelengths between the blue and green primaries, some red primary must be added to the target, resulting in negative values of \bar(\lambda). Likewise, between the green and red primaries, some blue must be added to the target, resulting in negative values of \bar(\lambda). For wavelengths below the wavelength of the blue primary, or above the wavelength of the red primary, some green must be added and \bar(\lambda) will be negative. For every spectral color, except those defined by the primary colors, there will always be two positive color-matching functions and one negative (as long as the primaries are all monochromatic). It can be seen (in the chromaticity diagram to the right) that the deviation of the boundaries of the triangular CIE RGB gamut align well with the spectral locus of the ''xy'' chromaticity diagram, except between the blue and green primaries, where rather large amounts of the red primary must be added to the test field, and it is in this band that the red color-matching function has the most significant negative values.


CIE RGB color space

The CIE RGB color space is one of many RGB color spaces, each distinguished by their particular set of
primary colors Primary colors are colorants or colored lights that can be mixed in varying amounts to produce a gamut of colors. This is the essential method used to create the perception of a broad range of colors in, e.g., electronic displays, color printin ...
. Although Wright and Guild's experiments were carried out using various primaries at various intensities, and although they used a number of different observers, all of their results were summarized by the standardized CIE RGB color matching functions \overline(\lambda), \overline(\lambda), and \overline(\lambda), obtained using three monochromatic primaries at standardized wavelengths of (red), (green) and (blue). The primaries with wavelengths and were chosen because they are easily reproducible monochromatic lines of a mercury vapor discharge. The wavelength, which in 1931 was difficult to reproduce as a monochromatic beam, was chosen because the eye's perception of color is rather unchanging at this wavelength, and therefore small errors in wavelength of this primary would have little effect on the results. The (un-normalized) color matching functions are the amounts of primaries needed to match the monochromatic target color. These functions are shown in the plot on the right. Note how \overline(\lambda) and \overline(\lambda) are zero at , \overline(\lambda) and \overline(\lambda) are zero at and \overline(\lambda) and \overline(\lambda) are zero at , since in these cases the test color is exactly equal to the non-zero primary. The color matching functions and primaries were settled upon by a CIE special commission after considerable deliberation. and The cut-offs at the short- and long-wavelength side of the diagram are chosen somewhat arbitrarily; the human eye can actually see light with wavelengths up to about , but with a sensitivity that is many thousand times lower than for green light. These color matching functions define what is known as the "1931 CIE standard observer". Rather than specify the brightness of each primary, the curves are normalized to have constant area beneath them. This area is fixed to a particular value by specifying that: : \int_0^\infty \overline(\lambda)\,d\lambda = \int_0^\infty \overline(\lambda)\,d\lambda = \int_0^\infty \overline(\lambda)\,d\lambda. The resulting normalized color matching functions are then scaled in the r:g:b ratio of 1:4.5907:0.0601 for source
luminance Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through, is emitted from, or is reflected from a particular area, and falls wit ...
and 72.0962:1.3791:1 for source
radiance In radiometry, radiance is the radiant flux emitted, reflected, transmitted or received by a given surface, per unit solid angle per unit projected area. Radiance is used to characterize diffuse emission and reflection of electromagnetic radiati ...
to reproduce the true color matching functions. By proposing that the primaries be standardized, the CIE established an international system of objective color notation. Given these scaled color matching functions, the RGB tristimulus values for a color with a
spectral power distribution In radiometry, photometry (optics), photometry, and color science, a spectral power distribution (SPD) measurement describes the Power (physics), power per unit area per unit wavelength of an illumination (lighting), illumination (radiant exitan ...
S(\lambda) would then be given by: :\begin R &= \int_0^\infty S(\lambda)\,\overline(\lambda)\,d\lambda, \\ muG &= \int_0^\infty S(\lambda)\,\overline(\lambda)\,d\lambda, \\ muB &= \int_0^\infty S(\lambda)\,\overline(\lambda)\,d\lambda. \end These are all inner products and can be thought of as a projection of an infinite-dimensional spectrum to a three-dimensional color.


CIE XYZ color space

After the definition of the RGB model of human vision using the CIE RGB matching functions, the CIE special commission wished to derive another color space from the CIE RGB color space. It was assumed that Grassmann's law held, and the new space would be related to the CIE RGB space by a linear transformation. The new space would be defined in terms of three new color matching functions \overline(\lambda), \overline(\lambda), and \overline(\lambda), which would be chosen as having the following desirable properties: # The new color matching functions were to be everywhere greater than or equal to zero. In 1931, computations were done by hand or slide rule, and the specification of positive values was a useful computational simplification. # The \overline(\lambda) color matching function would be exactly equal to the photopic luminous efficiency function ''V''(''λ'') for the "CIE standard photopic observer". The luminance function describes the variation of perceived brightness with wavelength. The fact that the luminance function could be constructed by a linear combination of the RGB color matching functions was not guaranteed by any means but might be expected to be nearly true due to the near-linear nature of human sight. Again, the main reason for this requirement was computational simplification. # For the constant energy
white point A white point (often referred to as reference white or target white in technical documents) is a set of tristimulus values or chromaticity coordinates that serve to define the color "white" in image capture, encoding, or reproduction. Depending o ...
, it was required that . # By virtue of the definition of
chromaticity Chromaticity is an objective specification of the quality of a color regardless of its luminance. Chromaticity consists of two independent parameters, often specified as '' hue'' (''h'') and ''colorfulness'' (''s''), where the latter is alte ...
and the requirement of positive values of ''x'' and ''y'', it can be seen that the gamut of all colors will lie inside the triangle , 0 , 0
, 1 The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
It was required that the gamut fill this space practically completely. # It was found that the \overline(\lambda) color matching function could be set to zero above while remaining within the bounds of experimental error. For computational simplicity, it was specified that this would be so. The derived CIE XYZ color space encompasses all color sensations that are perceptible to a typical human. The underlying color matching functions can be thought of as the spectral sensitivity curves of three linear light detectors yielding the CIE tristimulus values ''X'', ''Y'' and ''Z''. Collectively, these three functions describe the CIE standard observer. That is why CIE XYZ tristimulus values are a device-invariant representation of color. It serves as a standard reference against which many other color spaces are defined. A set of color-matching functions, like the spectral sensitivity curves of the
LMS color space LMS (long, medium, short), is a color space which represents the response of the three types of Cone cell, cones of the human eye, named for their responsivity (sensitivity) peaks at long, medium, and short wavelengths. The numerical range is ...
, but not restricted to non-negative sensitivities, associates physically produced light spectra with specific tristimulus values. Most wavelengths stimulate two or all three kinds of
cone cell Cone cells or cones are photoreceptor cells in the retina of the vertebrate eye. Cones are active in daylight conditions and enable photopic vision, as opposed to rod cells, which are active in dim light and enable scotopic vision. Most v ...
because the spectral sensitivity curves of the three kinds overlap. Certain tristimulus values are thus physically impossible: e.g. LMS tristimulus values that are non-zero for the M component and zero for both the L and S components. Furthermore pure spectral colors would, in any normal trichromatic additive color space, e.g., the RGB color spaces, imply negative values for at least one of the three primaries because the
chromaticity Chromaticity is an objective specification of the quality of a color regardless of its luminance. Chromaticity consists of two independent parameters, often specified as '' hue'' (''h'') and ''colorfulness'' (''s''), where the latter is alte ...
would be outside the color triangle defined by the primary colors. To avoid these negative RGB values, and to have one component that describes the perceived
brightness Brightness is an attribute of visual perception in which a source appears to be radiating/reflecting light. In other words, brightness is the perception dictated by the luminance of a visual target. The perception is not linear to luminance, and ...
, "imaginary" primary colors and corresponding color-matching functions were formulated. The CIE 1931 color space defines the resulting tristimulus values, in which they are denoted by "X", "Y", and "Z". In XYZ space, all combinations of non-negative coordinates are meaningful, but many, such as the primary locations , 0, 0
, 1, 0 The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
and , 0, 1 correspond to imaginary colors outside the space of possible LMS coordinates; imaginary colors do not correspond to any spectral distribution of wavelengths and therefore have no physical reality.


Meaning of ''X'', ''Y'' and ''Z''

In the CIE 1931 model, ''Y'' is the
luminance Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through, is emitted from, or is reflected from a particular area, and falls wit ...
, ''Z'' is quasi-equal to blue (of CIE RGB), and ''X'' is a mix of the three CIE RGB curves chosen to be nonnegative (see ). Setting ''Y'' as luminance has the useful result that for any given ''Y'' value, the XZ plane will contain all possible chromaticities at that luminance. The unit of the tristimulus values , , and is often arbitrarily chosen so that or is the brightest white that a color display supports. In this case, the Y value is known as the
relative luminance Relative luminance Y follows the Luminance, photometric definition of luminance L including spectral weighting for human vision, but while luminance L is a measure of light in units such as cd/m^2, relative luminance Y values are normalized as ...
. The corresponding whitepoint values for and can then be inferred using the
standard illuminant A standard illuminant is a theoretical source of visible light with a spectral power distribution that is published. Standard illuminants provide a basis for comparing images or colors recorded under different lighting. CIE illuminants The Inte ...
s. Since the XYZ values are defined much earlier than the characterization of cone cells in the 1950s (by Ragnar Granit), the physiological meaning of these values were known only much later. The Hunt-Pointer-Estevez matrix from the 1980s relates XYZ with LMS. When inverted, it shows how the three cone responses add up to XYZ functions: : \begin X\\Y\\Z \end = \begin 1.91020 & -1.11212 & 0.20191 \\ 0.37095 & 0.62905 & 0 \\ 0 & 0 & 1 \end \begin L\\M\\S \end_ In other words, the Z value is solely made up of the S cone response, the Y value a mix of L and M responses, and X value a mix of all three. This fact makes XYZ values analogous to, but different from, the LMS cone responses of the human eye.


CIE rg chromaticity space

In geometrical terms, choosing the new color space amounts to choosing a new triangle in ''rg'' chromaticity space. In the figure above-right, the ''rg'' chromaticity coordinates are shown on the two axes in black, along with the gamut of the 1931 standard observer. Shown in red are the CIE ''xy'' chromaticity axes which were determined by the above requirements. The requirement that the XYZ coordinates be non-negative means that the triangle formed by Cr, Cg, Cb must encompass the entire gamut of the standard observer. The line connecting Cr and Cb is fixed by the requirement that the \overline(\lambda) function be equal to the luminance function. This line is the line of zero luminance, and is called the alychne. The requirement that the \overline(\lambda) function be zero above means that the line connecting Cg and Cr must be tangent to the gamut in the region of Kr. This defines the location of point Cr. The requirement that the equal energy point be defined by puts a restriction on the line joining Cb and Cg, and finally, the requirement that the gamut fill the space puts a second restriction on this line to be very close to the gamut in the green region, which specifies the location of Cg and Cb. The above described transformation is a linear transformation from the CIE RGB space to XYZ space. The standardized transformation settled upon by the CIE special commission was as follows: The CIE RGB space can be used to define chromaticity in the usual way: The chromaticity coordinates are ''r'', ''g'' and ''b'' where: :\begin r &= \frac, \\ mug &= \frac, \\ mub &= \frac. \end The numbers in the conversion matrix below are exact, with the number of digits specified in CIE standards. :\begin \begin X \\ Y \\ Z \end &= \begin b_ & b_ & b_ \\ b_ & b_ & b_ \\ b_ & b_ & b_ \end \begin R \\ G \\ B \end \\ 0mu&= \begin 0.490\,00 & 0.310\,00 & 0.200\,00 \\ 0.176\,97 & 0.812\,40 & 0.010\,63 \\ 0.000\,00 & 0.010\,00 & 0.990\,00 \end \begin R \\ G \\ B \end \end The above matrix is balanced for the equi-energy stimulus: it has coordinates (1,1,1) in both RGB and XYZ coordinates. While the above matrix is exactly specified in standards, the inverse is left unspecified so that it can be approximated to machine precision to reduce round-trip rounding errors. Its values can be computed precisely using rational numbers: : \begin R \\ G \\ B \end = \frac \begin 8041697 & -3049000 & -1591847 \\ -1752003 & 4851000 & 301853 \\ 17697 & -49000 & 3432153 \end \begin X \\ Y \\ Z \end Which has these approximate values: : \begin R \\ G \\ B \end \approx \begin 2.364\,61385 & -0.896\,54057 & -0.468\,07328 \\ -0.515\,16621 & 1.426\,4081 & 0.088\,7581 \\ 0.005\,2037 & -0.014\,40816 & 1.009\,20446 \end \begin X \\ Y \\ Z \end The XYZ primaries will have XYZ coordinates ,0,0 ,1,0 and ,0,1in XYZ space, so the columns of the inverse matrix above specify the XYZ primaries ( Cr, Cg and Cb) in RGB space. Dividing each column by its sum will give the coordinates of the XYZ primaries in rgb space which yields: :Cr = :Cg = :Cb = The r and g coordinates of the XYZ primaries are indicated in the rg chromaticity space diagram above. The integrals of the XYZ color matching functions must all be equal by requirement 3 above, and this is set by the integral of the photopic luminous efficiency function by requirement 2 above. The tabulated sensitivity curves have a certain amount of arbitrariness in them. The shapes of the individual ''X'', ''Y'' and ''Z'' sensitivity curves can be measured with a reasonable accuracy. However, the overall luminosity curve (which in fact is a weighted sum of these three curves) is subjective, since it involves asking a test person whether two light sources have the same brightness, even if they are in completely different colors. Along the same lines, the relative magnitudes of the ''X'', ''Y'', and ''Z'' curves are arbitrary. Furthermore, one could define a valid color space with an ''X'' sensitivity curve that has twice the amplitude. This new color space would have a different shape. The sensitivity curves in the CIE 1931 and 1964 XYZ color spaces are scaled to have equal areas under the curves.


CIE xyY color space

Three dimensional color can be divided into two parts: brightness and
chromaticity Chromaticity is an objective specification of the quality of a color regardless of its luminance. Chromaticity consists of two independent parameters, often specified as '' hue'' (''h'') and ''colorfulness'' (''s''), where the latter is alte ...
. For example, the color white is a bright color, while the color grey is considered to be a less bright version of that same white. In other words, the chromaticity of white and grey are the same while their brightness differs. The CIE xyY color space was deliberately designed so that the ''Y'' parameter is also a measure of the
luminance Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through, is emitted from, or is reflected from a particular area, and falls wit ...
of a color. The chromaticity is then specified by the two derived parameters ''x'' and ''y'', two of the three normalized values derived from the tristimulus values ''X'', ''Y'', and ''Z'': :\begin x &= \frac \\ muy &= \frac \\ muz &= \frac = 1 - x - y \end That is, because each tristimulus parameter, ''X'', ''Y'', ''Z'', is divided by the sum of all three, the resulting values, ''x'', ''y'', ''z'', each represent a proportion of the whole and so their sum must be equal to one. Therefore, the value ''z'' can be deduced by knowing ''x'' and ''y'', and consequently the latter two values are sufficient for describing the chromaticity of any color. The derived color space specified by ''x'', ''y'', and ''Y'' is known as the CIE xyY color space and is widely used to specify colors in practice. The ''X'' and ''Z'' tristimulus values can be calculated back from the chromaticity values ''x'' and ''y'' and the ''Y'' tristimulus value: :\begin X &= \fracx, \\ muZ &= \frac(1 - x - y). \end Mathematically the colors of the chromaticity diagram occupy a region of the
real projective plane In mathematics, the real projective plane, denoted or , is a two-dimensional projective space, similar to the familiar Euclidean plane in many respects but without the concepts of distance, circles, angle measure, or parallelism. It is the sett ...
.


The figures on the right show the related chromaticity diagram. The outer curved boundary is the ''spectral locus'', with wavelengths shown in nanometers. The chromaticity diagram is a tool to specify the quality of a color regardless of its brightness. For examples,

grey Grey (more frequent in British English) or gray (more frequent in American English) is an intermediate color between black and white. It is a neutral or achromatic color, meaning that it has no chroma. It is the color of a cloud-covered s ...
has the same
chromaticity Chromaticity is an objective specification of the quality of a color regardless of its luminance. Chromaticity consists of two independent parameters, often specified as '' hue'' (''h'') and ''colorfulness'' (''s''), where the latter is alte ...
as white, and teal has the same chromaticity as
cyan Cyan () is the color between blue and green on the visible spectrum of light. It is evoked by light with a predominant wavelength between 500 and 520 nm, between the wavelengths of green and blue. In the subtractive color system, or CMYK c ...
, because the only difference between them is their brightness, not their spectral purity. The chromaticity diagram illustrates a number of interesting properties of the CIE XYZ color space: * The diagram represents all of the chromaticities visible to the average person. These are shown in color and this region is called the
gamut In color reproduction and colorimetry, a gamut, or color gamut , is a convex set containing the colors that can be accurately represented, i.e. reproduced by an output device (e.g. printer or display) or measured by an input device (e.g. cam ...
of human vision. The gamut of all visible chromaticities on the CIE plot is the tongue-shaped or horseshoe-shaped figure shown in color. The curved edge of the gamut is called the ''spectral locus'' and corresponds to monochromatic light (each point representing a pure hue of a single wavelength), with wavelengths listed in nanometers. The straight edge on the lower part of the gamut is called the line of purples. These colors, although they are on the border of the gamut, have no counterpart in monochromatic light. Less saturated colors appear in the interior of the figure with white at the center. * It is seen that all visible chromaticities correspond to non-negative values of ''x'', ''y'', and ''z'' (and therefore to non-negative values of ''X'', ''Y'', and ''Z''). * If one chooses any two points of color on the chromaticity diagram, then all the colors that lie in a straight line between the two points can be formed by mixing these two colors. It follows that the gamut of colors must be
convex Convex or convexity may refer to: Science and technology * Convex lens, in optics Mathematics * Convex set, containing the whole line segment that joins points ** Convex polygon, a polygon which encloses a convex set of points ** Convex polytop ...
in shape. All colors that can be formed by mixing three sources are found inside the triangle formed by the source points on the chromaticity diagram (and so on for multiple sources). * An equal, additive mixture of two colors will not generally lie on the midpoint of that
line segment In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
, unless the sum of the X, Y, and Z values of one color is equal to the sum of the X, Y, and Z values of the other color (that is, both colors lie in the same plane of the type
X + Y + Z = n). * A distance on the CIE xy chromaticity diagram does not correspond to the perceived difference between two colors. In the early 1940s, David MacAdam studied the nature of visual sensitivity to color differences, and summarized his results in the concept of a MacAdam ellipse. Based on the work of MacAdam, the CIE 1960, CIE 1964, and CIE 1976 color spaces were developed, with the goal of achieving perceptual uniformity (have an equal distance in the color space correspond to equal differences in color). Although they were a distinct improvement over the CIE 1931 system, they were not completely free of distortion. * It can be seen that, given three real sources, these sources cannot cover the gamut of human vision. Geometrically stated, there are no three points within the gamut that form a triangle that includes the entire gamut; or more simply, the gamut of human vision is not a triangle. * Light with a flat power spectrum in terms of wavelength (equal power in every interval) corresponds to the point ( illuminant E).


Color mixing in CIE xyY

When two or more colors are additively mixed, the x and y chromaticity coordinates of the resulting color (xmix,ymix) may be calculated from the chromaticities of the mixture components (x1,y1; x2,y2; …; xn,yn) and their corresponding luminances (L1, L2, …, Ln) with the following formulas: : x_ = \frac \quad,\quad y_ = \frac These formulas can be derived from the definitions of the x and y chromaticity coordinates by taking advantage of the fact that XYZ (tristimulus) values are additive. In place of the luminance values L1, L2, etc., one can use any photometric quantity proportional to the tristimulus value Y (including, of course, Y itself) in the context of interest; this also applies to the following mixing ratio computation. As previously stated, when two colors are mixed, the resulting color xmix, ymix lies on the straight line segment that connects them on the CIE xy chromaticity diagram. The mixing ratio of colors x1,y1 and x2,y2 that results in a given xmix,ymix on this line segment is given by : \frac = \frac = \frac where L1 is the luminance of color x1,y1 and L2 the luminance of color x2,y2. Because ymix is unambiguously determined by xmix and vice versa (unless x1 = x2 or y1 = y2), one is enough to compute the mixing ratio.


Computing XYZ from spectral data


Emissive case

The tristimulus values for a color with a
spectral radiance In radiometry, spectral radiance or specific intensity is the radiance of a surface per unit frequency or wavelength, depending on whether the Spectral radiometric quantity, spectrum is taken as a function of frequency or of wavelength. The Interna ...
''L''e,Ω,λ are given in terms of the standard observer by: :\begin X &= \int_\lambda L_(\lambda)\,\overline(\lambda)\,d\lambda, \\ muY &= \int_\lambda L_(\lambda)\,\overline(\lambda)\,d\lambda, \\ muZ &= \int_\lambda L_(\lambda)\,\overline(\lambda)\,d\lambda. \end where \lambda is the wavelength of the equivalent
monochromatic A monochrome or monochromatic image, object or palette is composed of one color (or values of one color). Images using only shades of grey are called grayscale (typically digital) or black-and-white (typically analog). In physics, mon ...
light (measured in nanometers), and customary limits of the integral are \lambda\in 80, 780/math>. The values of ''X'', ''Y'', and ''Z'' are bounded if the radiance spectrum ''L''e,Ω,λ is bounded.


Reflective and transmissive cases

The reflective and transmissive cases are very similar to the emissive case, with a few differences. The spectral radiance ''L''e,Ω,λ is replaced by the spectral
reflectance The reflectance of the surface of a material is its effectiveness in reflecting radiant energy. It is the fraction of incident electromagnetic power that is reflected at the boundary. Reflectance is a component of the response of the electronic ...
(or
transmittance Electromagnetic radiation can be affected in several ways by the medium in which it propagates.  It can be Scattering, scattered, Absorption (electromagnetic radiation), absorbed, and Fresnel equations, reflected and refracted at discontinui ...
) ''S(λ)'' of the object being measured, multiplied by the spectral power distribution of the illuminant ''I(λ)''. :\begin X &= \frac\int_\lambda S(\lambda)\,I(\lambda)\,\overline(\lambda)\,d\lambda, \\ muY &= \frac\int_\lambda S(\lambda)\,I(\lambda)\,\overline(\lambda)\,d\lambda, \\ muZ &= \frac\int_\lambda S(\lambda)\,I(\lambda)\,\overline(\lambda)\,d\lambda, \end where :N = \int_\lambda I(\lambda)\,\overline(\lambda)\,d\lambda, ''K'' is a scaling factor (usually 1 or 100), and \lambda is the wavelength of the equivalent
monochromatic A monochrome or monochromatic image, object or palette is composed of one color (or values of one color). Images using only shades of grey are called grayscale (typically digital) or black-and-white (typically analog). In physics, mon ...
light (measured in nanometers), and the standard limits of the integral are \lambda\in 80, 780/math>.


Subsequent refinements

A few other XYZ-style color-matching functions have been available, correcting for known issues in the original 1931 color space. These functions imply their own XYZ-like and xyY-like color spaces.


10° standard observer

An alternative to the original 2° standard observer was defined in 1964, focusing on larger 10° stimuli. It was derived from the work of Stiles and Burch, and Speranskaya. For the 10° experiments, the observers were instructed to ignore the central 2° spot. The 1964 ''supplementary standard observer'' function is recommended when dealing with more than about a 4° field of view, but some prefer to use it always as "human wide field color discrimination is about 2 to 3 times more accurate than foveal color discrimination". The color matching functions for both standard observers are published by the CIE, who also publishes the data openly for the 2° and 10° standard observer functions. The data are discretized at wavelength intervals from to .


Analytical approximation

Table lookup can become impractical for some computational tasks. Instead of referring to the published table, the CIE XYZ color matching functions can be approximated by a sum of
Gaussian function In mathematics, a Gaussian function, often simply referred to as a Gaussian, is a function (mathematics), function of the base form f(x) = \exp (-x^2) and with parametric extension f(x) = a \exp\left( -\frac \right) for arbitrary real number, rea ...
s, as follows: Let ''g''(''x'') denote a piecewise-Gaussian function, defined by : g(x; \mu, \tau_1, \tau_2) = \begin \exp \bigl(\bigr), &x < \mu, \\ mu\exp \bigl(\bigr), &x \geq \mu. \end That is, ''g''(''x'') resembles a bell curve with its peak at , a spread/standard deviation of 1/\tau_1 to the left of the mean, and spread of 1/\tau_2 to the right of the mean. With the wavelength ''λ'' measured in
nanometer 330px, Different lengths as in respect to the Molecule">molecular scale. The nanometre (international spelling as used by the International Bureau of Weights and Measures; SI symbol: nm), or nanometer (American spelling Despite the va ...
s, we then approximate the 1931 color matching functions: : \begin \overline(\lambda) &= 1.056\,g(\lambda; 599.8, 0.0264, 0.0323) + 0.362\,g(\lambda; 442.0, 0.0624, 0.0374) \\ mu&\quad - 0.065\,g(\lambda; 501.1, 0.0490, 0.0382), \\ mu\overline(\lambda) &= 0.821\,g(\lambda; 568.8, 0.0213, 0.0247) + 0.286\,g(\lambda; 530.9, 0.0613, 0.0322), \\ mu\overline(\lambda) &= 1.217\,g(\lambda; 437.0, 0.0845, 0.0278) + 0.681\,g(\lambda; 459.0, 0.0385, 0.0725). \end The squared differences between the above approximation and the measured CIE ''xyz'' color matching functions is less than the within-observer variance encountered in the experimental measurements used to form the CIE standards. It is also possible to use fewer Gaussian functions, with one Gaussian for each "lobe". CIE 1964 fits well with a one-lobe function. The CIE XYZ color matching functions are nonnegative, and lead to nonnegative XYZ coordinates for all real colors (that is, for nonnegative light spectra). Other observers, such as for the CIE RGB space or other RGB color spaces, are defined by other sets of three color-matching functions, not generally nonnegative, and lead to tristimulus values in those other spaces, which may include negative coordinates for some real colors.


Others

; Judd and Vos corrections for the 2° CMF : The most serious problem with the 1931 CIE XYZ color matching functions is the error in the photopic Y (or V(\lambda) function on the blue end of the spectrum. The Judd (1951) and its following Vos (1978) corrections sought to correct for the issue without deviating from the original methodology. ; CIE 1964 X10Y10Z10 : X10Y10Z10 (also written XYZ10 and analogously for the following) is the XYZ-style color space defined using the CIE 1964 10° observer CMFs. The 3 CMFs are mainly derived from Stiles and Burch's RGB color-matching functions, which unlike the Wright–Guild functions (and the subsequent Judd–Vos corrections) are "directly measured", freeing them from the reconstruction errors of the 1931 functions. : Stiles and Burch also published a set of 2° RGB color-matching functions; however, no XYZ space derived from them has been formally recognized by the CIE. ; CIE 170-2 XFYFZF : XFYFZF is the XYZ-style color space defined using the Stockman & Sharpe (2000) physiological 2° observer, which is in turn a linear combination of the LMS cone response functions. The CMF data, along with the physiological 10° dataset, is available from the Colour & Vision Research laboratory of
University College London University College London (Trade name, branded as UCL) is a Public university, public research university in London, England. It is a Member institutions of the University of London, member institution of the Federal university, federal Uni ...
down to 0.1 nm resolution. ; CIE 170-2 XF,10YF,10ZF,10 : This space is based on the Stockman & Sharpe (2000) physiological 10° observer. According to
Konica Minolta is a Japanese multinational corporation, multinational technology company headquartered in Marunouchi, Chiyoda, Tokyo, Chiyoda, Tokyo, with offices in 49 countries worldwide. The company manufactures business and industrial imaging products, in ...
, the older CIE 1931 CMF exhibits metamerism failure (failure to predict when colors appear the same) for wide color gamut displays containing narrowband emitters like
OLED An organic light-emitting diode (OLED), also known as organic electroluminescent (organic EL) diode, is a type of light-emitting diode (LED) in which the emissive electroluminescent layer is an organic compound film that emits light in respon ...
, whereas the 2015 XYZF CMF is not affected. Older
Sony is a Japanese multinational conglomerate (company), conglomerate headquartered at Sony City in Minato, Tokyo, Japan. The Sony Group encompasses various businesses, including Sony Corporation (electronics), Sony Semiconductor Solutions (i ...
manuals recommend using the Judd-Vos correction by applying an offset to the
white point A white point (often referred to as reference white or target white in technical documents) is a set of tristimulus values or chromaticity coordinates that serve to define the color "white" in image capture, encoding, or reproduction. Depending o ...
depending on the display technology used.


See also

*
Trichromacy Trichromacy or trichromatism is the possession of three independent channels for conveying color information, derived from the three different types of cone cells in the eye. Organisms with trichromacy are called trichromats. The normal expl ...
* Impossible color *
CIELAB color space The CIELAB color space, also referred to as ''L*a*b*'', is a color space defined by the International Commission on Illumination (abbreviated CIE) in 1976. It expresses color as three values: ''L*'' for perceptual lightness and ''a*'' and '' ...
*
Standard illuminant A standard illuminant is a theoretical source of visible light with a spectral power distribution that is published. Standard illuminants provide a basis for comparing images or colors recorded under different lighting. CIE illuminants The Inte ...
, the definition of white point used by CIE and commonly shown in color space diagrams as E, D50 or D65


References


Further reading

* * * (originally published by the
Society of Dyers and Colourists Logo The Society of Dyers and Colourists (SDC) is an international professional society, with headquarters in Bradford, England, specializing in colour in all its manifestations, but particularly in relation to textiles. Founded in 1884, it was g ...
, Bradford, 1981.)


External links


Introduction to Colour Science
William Andrew Steer.

an
Delphi source

CIE Color Space
Gernot Hoffmann

Andrew Stockman and Lindsay T. Sharpe.
Calculation from the original experimental data of the CIE 1931 RGB standard observer spectral chromaticity co-ordinates and color matching functions


MATLAB toolbox for color science computation and accurate color reproduction (by Jesus Malo and Maria Jose Luque, Universitat de Valencia). It includes CIE standard tristimulus colorimetry and transformations to a number of non-linear color appearance models (CIE Lab, CIE CAM, etc.).

A Look at the Past and Future of LED Binning

Measuring Color in a world of light {{DEFAULTSORT:Cie 1931 Color Space Color space 1931 introductions Articles with example C code