Color space

On this page 7

A color space is a precisely specified system that assigns a measurable color to every numeric pixel value, defined by three primaries, a white point and a transfer function. In photography, and especially in color and white balance work, the color space decides what the numbers in a file actually mean, so the same RGB triplet can describe a muted red in one space and a saturated red in another.

Photographers meet color spaces at three points: the camera setting that tags JPEG files, the working space of a raw editor, and the output space of a screen, printer or web page. Keeping these stages consistent through color management is what makes a photograph look the same on every device that is capable of showing it.

How a color space defines color

Every RGB color space is anchored to a device-independent reference, usually the CIE 1931 XYZ model, which describes color as the average human observer perceives it. The space is fixed by three ingredients: the chromaticity of its red, green and blue primaries, the reference white point, and the tone response curve, often called gamma or transfer function.

The three primaries form a triangle on the CIE chromaticity diagram. Any color inside that triangle can be reproduced by mixing the primaries, while colors outside it are out of gamut and cannot be encoded without clipping or compression. The area of the triangle is the color gamut, a related but separate idea: the space is the full specification, and the gamut is only the range of colors it covers.

The following table lists the components that make up a complete color space definition and what each one controls in a photographic file.

ComponentWhat it specifiesEffect on the image
PrimariesChromaticity coordinates of red, green and blueSize and shape of the gamut
White pointColor treated as neutral, such as D65 or D50How neutrals and white balance are interpreted
Transfer functionCurve linking numeric values to light intensityDistribution of tonal steps between shadows and highlights
Bit depthNumber of levels per channel, such as 8 or 16 bitsSmoothness of gradients and risk of banding
Encoding rangeFull or limited numeric rangeCorrect black and white levels on playback
Components of an RGB color space

Common color spaces used in photography

Photographers mostly work with a small set of standardized RGB spaces that differ in gamut size and intended use. sRGB, defined by IEC 61966-2-1, matches typical consumer displays and remains the default for the web. Adobe RGB (1998) extends the green and cyan region to cover more of what high-quality inkjet and offset printing can reproduce. ProPhoto RGB is so large that some of its primaries lie outside human vision, which makes it a working space rather than a delivery format.

Newer display standards have entered photography as well. Display P3, used by many phones and laptops, has roughly the same red and green reach as DCI-P3 cinema with a D65 white, and Rec. 2020 targets future wide-gamut and HDR displays. The table compares the spaces a photographer is most likely to encounter.

Color spaceApproximate gamutWhite pointTypical role
sRGBAbout 35% of visible colorsD65Web, social media, standard displays
Adobe RGB (1998)About 50% of visible colorsD65Print delivery, wide-gamut monitors
Display P3About 45% of visible colorsD65Phones, tablets, modern laptops
ProPhoto RGBAbout 90% of visible colorsD50Raw editing working space
Rec. 2020About 75% of visible colorsD65HDR video and future displays
Comparison of photographic RGB color spaces

Gamut percentages vary with the reference diagram used, so they should be read as rough comparisons rather than exact figures. What matters in practice is the ordering: sRGB is the smallest common space, and ProPhoto RGB is the largest.

Color space, white balance and camera profiles

A color space is not the same as white balance, although the two interact closely. White balance adjusts the image so that a neutral object under a given light source, measured in Kelvin with an additional tint correction, is rendered as neutral. The color space then defines which white point that neutral value maps to when the file is displayed, for example D65 in sRGB.

A camera color profile sits one step earlier. It translates the sensor’s native, device-specific response into a standard space, and it decides the look of skin, foliage and sky. Raw files have no embedded output color space; the camera setting for sRGB or Adobe RGB affects only the JPEG preview and in-camera JPEGs, while the raw converter applies its own profile and working space.

The table below separates these neighboring concepts, which are frequently confused in workflow discussions.

ConceptQuestion it answersWhere it applies
Color spaceWhat does each numeric value meanFiles, editors, displays, printers
Color gamutWhich colors can be representedA property of a space or device
White balanceWhich light should appear neutralCapture and raw conversion
Camera color profileHow sensor data becomes standard colorRaw conversion
ICC profileHow to convert between spacesEmbedded in files and installed for devices
Related concepts in the color pipeline

Choosing and converting color spaces

The sound rule is to edit in a wide space and deliver in the space of the destination. A 16-bit ProPhoto RGB or similar wide working space preserves saturated colors from the raw file during editing, and the final export is converted to sRGB, Display P3 or a printer profile only at the end.

Conversion relies on ICC profiles and a rendering intent. Relative colorimetric intent keeps in-gamut colors exact and clips the rest, while perceptual intent compresses the whole range to preserve relationships between colors. Simply assigning a profile instead of converting relabels the numbers and changes the visible colors, which is a common source of errors.

SituationRecommended spaceReason
Web and social mediasRGB, 8-bitMost browsers and apps assume sRGB
Fine art inkjet printingProPhoto RGB or Adobe RGB, 16-bitPrinters exceed sRGB in cyan and green
Commercial lab printingLab-specified, often sRGBLab workflows are calibrated for it
Apple and recent Android devicesDisplay P3Displays show the wider gamut
Raw editing master fileProPhoto RGB, 16-bitAvoids clipping before final output
Recommended color space by situation

Common mistakes and limitations

Most color space problems come from mismatched or missing tags. A wide-gamut file shown by software that ignores profiles looks dull and desaturated, while an sRGB image stretched across a wide-gamut monitor without management looks oversaturated. These symptoms are frequently misdiagnosed as white balance errors.

  • Exporting Adobe RGB to the web produces flat colors in viewers that assume sRGB.
  • Using ProPhoto RGB at 8 bits spreads too few levels over a huge gamut and causes visible banding.
  • Stripping the embedded profile during export forces every viewer to guess the color space.
  • Editing on an uncalibrated monitor makes any choice of color space unreliable.
  • Choosing a large space does not add color that the scene, sensor or output device cannot reproduce.

A wide space is therefore not automatically better. Its benefit appears only when the source contains saturated colors and the output can reproduce them, which is why a consistent, documented workflow matters more than the size of any single space.

Explained without jargon

A photo file stores colors as numbers, but numbers alone do not say what color you should see. A color space is the dictionary that translates those numbers into real colors. Two files can contain the same numbers and still look different if they use different dictionaries.

Some dictionaries are small and work everywhere, such as sRGB for the web. Others are larger and hold more vivid colors for printing or editing. The key is to keep the right dictionary attached to the file and to convert it properly before sharing, so everyone sees the colors you intended.

A typical use case

A landscape photographer shoots raw images of a turquoise mountain lake and edits them in a 16-bit ProPhoto RGB working space on a calibrated wide-gamut monitor. The saturated cyan of the water lies beyond sRGB, so the large working space keeps it intact during tone and color adjustments.

For a gallery print on a pigment inkjet printer, the photographer converts the master file with the paper’s ICC profile and relative colorimetric intent, after checking clipped areas with soft proofing. For the portfolio website, a separate copy is converted to 8-bit sRGB with perceptual intent. Both versions look consistent, and the print keeps the deeper turquoise that the web version cannot show.