Why does the same file look different on two displays? We think we are writing down a number for red; the display, however, has to know which red and which light level that number represents. Establishing exactly this agreement is the job of color management.

Three numbers, but which three?
In normal trichromatic vision, color matching can be represented with three components. That doesn’t mean all of color perception boils down to three simple numbers: adaptation, surround and viewing conditions matter too. And RGB values remain incomplete unless the primaries and white point are specified.
CIE XYZ is a colorimetric reference. Chromaticity is obtained from x = X/(X+Y+Z), y = Y/(X+Y+Z); when the sum is zero, these ratios are undefined. Equal distances on the xy diagram do not mean equal perceptual differences. [1]
GETTING THE CONCEPTS RIGHT
Gamut and white point
BT.709 and BT.2020 do not interpret the same RGB numbers as the same colors. The chosen primaries determine the color volume that can be displayed. Likewise, even though DCI-P3 and Display P3 share primaries, they are not the same system in terms of white point and encoding. [2, 3]
When describing a display’s gamut, the measurement space and method should be stated as well. The inference “BT.2020 primaries lie on the spectral locus, so no real display can cover 100%” is not correct. There are technologies that can approach spectral primaries; a coverage claim is assessed by measurement.
Where does a matrix come in?
A 3 × 3 matrix can be used between XYZ and linear RGB with defined primaries and white point. Chromatic adaptation may also be needed between different white points. How out-of-gamut values are mapped, however, cannot be solved by matrix multiplication alone.
For BT.709 linear RGB, Y = 0.2126R + 0.7152G + 0.0722B. Y′ computed with the same weights from nonlinear R′G′B′, on the other hand, is luma. It is not the same as physical luminance. Saying “all color conversions are 3 × 3” misses this distinction and the nonlinear operations. [2]

| Term | Core function | Not to be confused with |
|---|---|---|
| Primaries / white | Defines the color | Transfer curve |
| OETF | Scene → code | Not always the inverse of the EOTF |
| EOTF | Code → display light | Not a metadata format |
| Tone mapping | Range adaptation | Not just a gamut matrix |
DESIGN AND IMPLEMENTATION
OETF, EOTF and OOTF
The OETF relates scene light to the signal encoding; the EOTF relates the signal to display light. The OOTF describes the overall appearance relationship from scene to display. We cannot find the reference display behavior of every system simply by inverting its OETF.
Gamma is tied both to the physical history of displays and to coding efficiency. A nonlinear representation can distribute code levels more usefully. BT.1886 is the reference display EOTF for HDTV; it reduces to a simple power curve only under suitable conditions, such as a zero black level. [4]
HDR, PQ and HLG
HDR is not more pixels; it is a different way of managing the luminance range and the image’s appearance. BT.2100 defines the PQ and HLG systems. PQ’s code scale extends up to 10,000 cd/m², but that does not mean every HDR display must reach that peak. [5]
The PQ transfer function does not by itself mandate dynamic metadata. The metadata rules of delivery systems such as HDR10 and Dolby Vision are addressed separately. Nor is HDR just another name for wide gamut; SDR content can come at a high bit depth, and HDR content can come with a more limited range of colors.
Tone mapping and FPGA implementation
Tone mapping is used to map content that doesn’t fit within the target display’s range. While compressing brightness, we also need to track how hue and saturation change. Clipping the channels independently can cause color shifts.
In an FPGA, the matrix, the curve LUT and, where needed, a 3D LUT take on different tasks. Memory and DSP cost depend on bit width, the degree of parallelism and interpolation. A LUT with a 20-bit input can be expensive, but “a full LUT is impossible” is not a law of physics. Let’s work out the resource budget for the target device.
Key takeaway: First define the coordinate system of the color, then the relationship between the code and light. That way, the question “why don’t the same RGB numbers look the same?” stops being a mystery.
A print-ready version of this episode is also available: PDF version (4 pages, in Turkish)
References
- Stockman: Cone fundamentals and CIE standards
- ITU-R BT.709
- ITU-R BT.2020
- ITU-R BT.1886
- ITU-R BT.2100
This episode is also shared as a document on Wupsoft’s LinkedIn page.
