2026-11-15 · 4 min read

Color Space Explained: XYZ, Chromaticity Ratios, Bit Depth and Nits

Color space is the language that lets a camera, a screen and a human eye agree on what a color is. Without a shared model, a red pixel is just a number. The CIE 1931 XYZ color space, defined by the International Commission on Illumination, is the reference model behind almost every modern color workflow. It links the physical wavelengths of light to the physiological response of the average observer, giving us three tristimulus values: X, Y and Z.

What X, Y and Z Actually Represent

The three values are not red, green and blue. X is a mixture dominated by the sensitivity of the human eye to red and green. Y describes perceived brightness and is built on the photopic luminosity function. Z is tied mainly to blue sensitivity. Together they describe any color stimulus in absolute terms, which is why XYZ is called a device-independent space.

CIE 1931 chromaticity diagram with the x and y coordinates

From XYZ to x y z: Turning Values into Ratios

Absolute values are inconvenient when we only want to talk about hue and saturation. So we normalize them: x = X / (X + Y + Z), y = Y / (X + Y + Z), z = Z / (X + Y + Z). Because the three ratios always sum to one, the third coordinate is redundant. That single fact is what makes the chromaticity diagram possible: we can plot every color on a flat two-dimensional graph using only x and y.

The result is the familiar horseshoe shape. Every point inside it is a chromaticity, a pair of hue and saturation coordinates with brightness factored out. Two colors can share the same x and y and still look completely different in intensity, because intensity lives in Y, not in the ratios.

Why Blue Looks Dark and Green Looks Bright

Human vision is not neutral. A saturated blue at low luminance still reads as blue, while a green of the same nominal value appears far brighter. This asymmetry comes from the density of cone responses and from the luminosity function, which weights green heavily. It is the reason a pure blue interface element can feel dim next to a green one, and the reason designers cannot treat all hues as equally legible at the same brightness.

Digital Primaries: sRGB, Display P3 and Beyond

A display cannot reproduce the whole horseshoe. Instead, engineers pick three primaries and draw a triangle inside the diagram. That triangle is the gamut. sRGB is the small, safe triangle that has served the web for decades. Display P3 pushes the red and green corners outward, covering noticeably more saturated colors. Wider standards such as Rec. 2020 aim at the full range of what the eye can see.

Approximate coverage of visible colors in the main color spaces
Color spaceApproximate coverageTypical use
sRGB~35%Web, legacy monitors
Display P3~45%Modern phones and laptops, HDR video
Rec. 2020~75%UHD broadcast, HDR cinema
← Scroll right to see more →

Bit Depth: The Step Count Between Colors

Gamut defines which colors are reachable; bit depth defines how finely we can walk between them. With 8 bits per channel we get 256 steps, enough for SDR but prone to banding in smooth gradients. 10-bit gives 1024 steps, 12-bit gives 4096. More steps mean smoother transitions in shadows and skies, and they matter even more in HDR, where the same code value must cover a much larger luminance range.

Absolute Values, Nits and HDR

Chromaticity ratios are scale-free. Multiply X, Y and Z by the same constant and the ratios stay identical while the absolute stimulus grows or shrinks. In the real world that constant is brightness, measured in candelas per square meter, or nits. A standard office monitor sits around 100 to 200 nits and covers only sRGB. A modern HDR display can reach 1000 nits or more, and it combines that headroom with a wider gamut.

Display classes compared
Display typePeak brightnessTypical gamut
Standard SDR monitor100–250 nitssRGB
HDR laptop or phone600–1600 nitsDisplay P3
Reference HDR monitor1000–4000 nitsRec. 2020 / P3
← Scroll right to see more →

Putting It All Together

Color space is therefore three separate ideas stacked on top of each other. The chromaticity diagram tells you which hues and saturations exist. The gamut triangle tells you which of them a device can actually produce. Bit depth tells you how many intermediate steps you have. And nits tell you how bright the result can be. Ignoring any one of them leads to the classic failures: oversaturated skin tones, banded gradients, or an HDR grade that looks flat on a 200-nit panel. Understanding the path from XYZ to x y z, and from ratios to nits, is what makes color decisions predictable instead of accidental.

Let's work together

Do you need more info, help with your project, or to develop an idea?

Whether it's an easy question, a quick doubt, or just a 5-minute chat, send me a message—it costs nothing and I'm always ready to help. I love discussing a problem to understand it, getting creative with solutions, and focusing on simple, reliable, and straightforward ideas that we can actuate quickly.

Contact me →

Switch Topic

Choose a specialized topic to explore: