sRGB
The standard RGB colour space that most screens, images and older CSS colours use.
In more detail
sRGB defines exactly which red, green and blue a value means and how brightness is encoded. Many newer screens can show more vivid colours than sRGB contains, such as those in Display P3. The WCAG contrast formula converts sRGB values to relative luminance.
Related terms
- RGB — A way of describing a colour by how much red, green and blue light to mix, each usually from 0 to 255.
- Display P3 — A colour space with a wider gamut than sRGB, supported by many modern phone, laptop and monitor screens.
- gamut — The full range of colours a colour space or screen can represent.
- relative luminance — How bright a colour is on a scale from 0 (black) to 1 (white), computed from its sRGB red, green and blue values.
Taught in
- Modern Color Spaces: OKLCH, Gamut Mapping & APCA Contrast — Design Systems & Component Engineering
- Visual Contrast Auditing: Color Blindness & Reduced Motion — Design Systems & Component Engineering