Skip to content
Part IA Michaelmas Term

RGB Colour Spaces

RGB Triangle

An RGB colour space is defined by:

  • Primaries: The chromaticity coordinates (x, y) of red, green, and blue
  • White point: The chromaticity of “white” (usually D65)

All colours within the RGB triangle on the chromaticity diagram can be reproduced.

Linear vs Display-Encoded RGB

Linear RGB

PropertyDescription
ValuesProportional to light intensity
UsePhysical calculations, rendering
FormatFloating point (0.0 to 1.0, or HDR > 1.0)

Display-Encoded RGB (sRGB)

PropertyDescription
ValuesPerceptually uniform (roughly)
UseStorage and display
FormatInteger (0-255)

Conversion: Linear to Display-Encoded

For sRGB with γ ≈ 2.2:

Rlinear=(R/255)γR_{\text{linear}} = (R' / 255)^\gamma

R=255Rlinear1/γR' = 255 \cdot R_{\text{linear}}^{1/\gamma}

Prime notation (RR') indicates display-encoded values.

sRGB Standard

Properties

PropertyValue
PrimariesITU-R BT.709
White pointD65
Gamma≈ 2.2 (piecewise function)
Bit depth8 bits/channel typical

Piecewise sRGB Transfer Function

Linear segment near zero, gamma for the rest:

Vout={12.92VlinearVlinear0.003131.055Vlinear1/2.40.055Vlinear>0.00313V_{\text{out}} = \begin{cases} 12.92 \cdot V_{\text{linear}} & V_{\text{linear}} \leq 0.00313 \\ 1.055 \cdot V_{\text{linear}}^{1/2.4} - 0.055 & V_{\text{linear}} > 0.00313 \end{cases}

Major RGB Colour Spaces

ITU-R BT.709 (sRGB)

Primaryxy
Red0.640.33
Green0.300.60
Blue0.150.06

Standard for HD video and web.

ITU-R BT.2020

Primaryxy
Red0.7080.292
Green0.1700.797
Blue0.1310.046

Standard for UHD/HDR. Larger gamut than BT.709.

Adobe RGB

Extends green primary compared to sRGB:

  • Useful for photography
  • Better gamut for natural greens
  • Requires colour-managed workflow

CMYK Colour Space

Subtractive Model

Printers use cyan, magenta, yellow inks that absorb light:

InkAbsorbsReflects
CyanRedGreen + Blue
MagentaGreenRed + Blue
YellowBlueGreen + Red

Why Black (K)?

Pure CMY mixing gives muddy grey, not true black:

  • Inks are not perfect absorbers
  • Black ink provides true black
  • Black ink is cheaper than CMY overlay
  • Text needs crisp black edges

Summary

  • RGB spaces are defined by three primaries and a white point
  • Linear RGB for physics; display-encoded for storage
  • sRGB (BT.709) is the standard for web and HD
  • CMYK is subtractive, used for printing

Past Paper Questions

2024 Paper 3 Question 3: Explain the difference between linear RGB and sRGB. When would you use each?

2023 Paper 3 Question 4: What are the primaries of sRGB? Why do different RGB spaces have different primaries?

2022 Paper 3 Question 3: Why does CMYK need a black (K) channel?