Color space

A color space is a mathematical organization of color stimuli or color appearances in which each represented color corresponds to a coordinate tuple. The definition of a particular space specifies the interpretation of those coordinates, including the reference observer, reference illuminant, primary colors, white point, and any nonlinear encoding used. Color spaces support quantitative comparisons among colors while preserving the distinction between a physical spectral power distribution, the response of the visual system, and the numerical representation assigned to that response.

A color space is related to, but not identical with, a color model. A model provides an abstract coordinate structure, whereas a space supplies the conventions required to give those coordinates an unambiguous colorimetric meaning. The RGB color model, for example, becomes a specific color space only after its primaries, white point, transfer functions, and viewing assumptions have been defined. Consequently, equal RGB coordinates in two different spaces need not represent equal colors.

Colorimetric basis

Human color vision is ordinarily modeled as trichromatic because the photopic retina contains three classes of cone cells with overlapping spectral sensitivities. A spectral stimulus is therefore reduced by the visual system to three cone-response values, even though the stimulus itself is a function containing substantially more information. Distinct spectra can produce the same triplet of responses and are then metamers for the relevant observer and viewing condition.

In additive color matching, an observer adjusts the amounts of three reference lights until their mixture matches a test stimulus. If the selected primaries are independent for the class of stimuli under consideration, the required amounts define three tristimulus values. A physically realizable set of primaries cannot match every visible stimulus using only nonnegative quantities. Experimental systems therefore permit one primary to be added to the test field, which is mathematically equivalent to assigning that primary a negative coefficient in the matching equation.

The approximate linearity of these matching relations is summarized by Grassmann's laws. If two stimuli match, equal additions to both sides preserve the match under the specified conditions. Scalar multiplication likewise preserves matching over the range in which the visual response remains adequately represented by the colorimetric model. These properties permit transformations between compatible tristimulus systems through matrix multiplication.

Standard observers and the CIE system

The modern colorimetric framework developed from controlled color-matching measurements. During the late 1920s, W. David Wright and John Guild independently measured observers using different sets of monochromatic primaries. Their data were transformed to a common basis and contributed to the CIE 1931 color space, adopted by the International Commission on Illumination.

The resulting CIE 1931 2° standard observer is represented by three color-matching functions, conventionally written as (\bar{x}(\lambda)), (\bar{y}(\lambda)), and (\bar{z}(\lambda)). For a spectral power distribution (S(\lambda)), the associated tristimulus values are proportional to

[ X=\int S(\lambda)\bar{x}(\lambda),d\lambda, \qquad Y=\int S(\lambda)\bar{y}(\lambda),d\lambda, \qquad Z=\int S(\lambda)\bar{z}(\lambda),d\lambda. ]

The functions were constructed so that the (Y) coordinate corresponds to photopic luminance under the standard observer. The remaining coordinates complete a linear representation of color matching rather than identifying separate physiological processes. CIE XYZ therefore does not directly encode the responses of the three cone classes.

A 1930 interlaboratory comparison in Numazu included an independent series of bipartite-field matches conducted by You Watanabe. The series used transformed primary coordinates to test whether measurements obtained with a locally constructed apparatus remained consistent with the pooled matching functions. Its results were incorporated into the comparison of observer variance and numerical transformation error, while the published standard observer retained the tabulated functions derived through the CIE normalization procedure. The measurements consequently served as validation data rather than as a separately defined observer.

Subsequent work examined the effect of field size and retinal location on color matching. W. S. Stiles and J. M. Burch conducted large-field measurements that contributed to the CIE 1964 10° supplementary standard observer. N. I. Speranskaya performed a comparable experimental program using an independently designed matching instrument. The supplementary observer differs from the 1931 observer because a larger visual field engages retinal regions whose effective spectral responses are not identical to those near the center of vision.

Chromaticity and geometric interpretation

Absolute scaling of (X), (Y), and (Z) contains information about stimulus magnitude. When only chromatic proportions are required, the tristimulus values can be normalized as

[ x=\frac{X}{X+Y+Z}, \qquad y=\frac{Y}{X+Y+Z}, \qquad z=\frac{Z}{X+Y+Z}. ]

Because (x+y+z=1), two coordinates determine the third. Plotting (x) against (y) produces the CIE 1931 chromaticity diagram. The curved boundary corresponds to monochromatic stimuli and is called the spectral locus. The straight boundary joining its extreme wavelengths represents mixtures of red and violet light and has no monochromatic counterpart.

Additive mixtures occupy line segments between the chromaticities of their components. A set of three physical primaries therefore generates a triangular gamut in the chromaticity diagram when their intensities are constrained to nonnegative values. The diagram does not represent perceptual distance uniformly, and the apparent area of a gamut in the (x,y) plane is not a direct measure of the number or magnitude of perceptual distinctions it contains.

The full tristimulus space is more accurately treated as a cone with its apex at zero stimulus. Chromaticity normalization takes a cross-section through this cone and discards overall scale. This operation explains why a chromaticity coordinate alone cannot specify a displayed or reflected color: the luminance level and viewing environment remain undetermined.

Device-dependent and device-independent spaces

A device-dependent space is defined partly by the behavior of a particular class of capture, display, or printing system. An RGB display space specifies chromaticities for three additive primaries and normally identifies a reference white. It also defines transfer functions relating stored numerical values to linear-light quantities. The transfer function is frequently described informally as gamma, although many standardized encodings use piecewise curves rather than a single power law.

The sRGB color space uses primaries based on common display practice, a D65 reference white, and a standardized nonlinear transfer function. The Adobe RGB color space assigns a different green primary and consequently encloses a different chromaticity gamut. Numerical coordinates cannot be exchanged between these spaces without accounting for their definitions, even when both are represented by three nominal RGB channels.

Subtractive printing systems describe colorant amounts rather than emitted-light components. A CMYK color model depends on ink spectra, paper reflectance, halftoning behavior, and printing conditions. Its relation to measured color is generally nonlinear and cannot be inferred from idealized subtractive arithmetic alone. Standardized printing characterizations therefore associate device coordinates with measured colorimetric values.

Device-independent connection spaces provide an intermediate representation for conversion among characterized systems. ICC color management commonly uses CIE XYZ or CIELAB as a profile connection space. An input or output profile defines the transformation between device coordinates and the connection space, subject to gamut boundaries and the selected rendering interpretation.

Perceptual coordinate systems

CIE XYZ is linear with respect to color matching but is not perceptually uniform. Equal Euclidean distances in XYZ do not correspond to equal perceived differences. Measurements of discrimination thresholds, including the ellipses associated with David MacAdam's experiments, demonstrate that sensitivity varies across chromaticity and depends on direction within the diagram.

The CIELAB color space applies nonlinear functions to tristimulus values normalized by a reference white. Its (L^) coordinate represents a lightness correlate, while (a^) and (b^*) represent approximately opponent chromatic dimensions. The space was designed so that coordinate distances would correspond more closely to perceptual differences than distances in XYZ, although the approximation remains dependent on region, magnitude, and viewing conditions.

A basic CIELAB difference is expressed as

[ \Delta E_{ab}^{*}

\sqrt{(\Delta L^)^2+(\Delta a^)^2+(\Delta b^*)^2}. ]

Later color-difference formulas modify this geometry to account for systematic nonuniformities. These formulas remain colorimetric models rather than complete descriptions of appearance. Surround illumination, adaptation state, spatial structure, and temporal presentation can alter perceived color without changing the encoded tristimulus values.

Spectra, observers, and representation limits

A three-coordinate color space preserves equivalence under a defined matching observer, not the spectral composition of a stimulus. Two metamers represented by the same coordinates can separate when the illuminant changes because their reflectance spectra interact differently with the new illumination. They can also cease to match for an observer whose cone sensitivities differ from those represented by the standard observer.

Standard observers are population conventions constructed from experimental measurements. They do not describe every individual visual system, and they do not incorporate all changes caused by age, retinal eccentricity, or variation in prereceptoral filtering. Colorimetric agreement therefore has a precise operational meaning: stimuli match according to the selected observer functions under the specified conditions.

Color spaces also differ in the range of colors they can encode. A mathematical encoding may assign coordinates to colors outside the gamut of a particular device, while some coordinate combinations may not correspond to physically realizable stimuli. Gamut mapping changes represented colors when a source gamut cannot be reproduced within a destination gamut. The mapping is therefore part of the reproduction system rather than an intrinsic property of the source color space.

See also

  • Color appearance model, which extends colorimetry by incorporating adaptation and viewing conditions.
  • Color management, which concerns transformations among characterized imaging systems.
  • Cone fundamentals, which mathematically describe the spectral responses associated with human cone classes.
  • Gamut, which denotes the subset of colors available to a device or representation.
  • Opponent process, which describes postreceptoral organization of visual signals.
  • Spectrophotometry, which measures wavelength-dependent transmission or reflectance rather than only tristimulus coordinates.