Skip to content

REC. 2020

The Rec. 2020 color space is registered in Color by default


Name: rec2020

White Point: D65 / 2˚


Name Range*
r [0, 1]
g [0, 1]
b [0, 1]

* Range denotes in gamut colors, but the color space supports an extended range beyond the gamut.

Rec. 2020

CIE 1931 xy Chromaticity – Rec. 2020 Chromaticities

ITU-R Recommendation BT.2020, more commonly known by the abbreviations Rec. 2020 or BT.2020, defines various aspects of ultra-high-definition television (UHDTV) with standard dynamic range (SDR) and wide color gamut (WCG), including picture resolutions, frame rates with progressive scan, bit depths, color primaries, RGB and luma-chroma color representations, chroma subsamplings, and an opto-electronic transfer function. The color is used in 4k and 8k UHDTV.

Learn about REC.2020

Channel Aliases

Channels Aliases
r red
g green
b blue


Parsed input and string output formats support all valid CSS forms:

color(rec2020 r g b / a)  // Color function

When manually creating a color via raw data or specifying a color space as a parameter in a function, the color space name is always used:

Color("rec2020", [0, 0, 0], 1)

The string representation of the color object and the default string output will be in the color(rec2020 r g b / a) form.

>>> Color("rec2020", [0.79198, 0.23098, 0.07376])
color(rec2020 0.79198 0.23098 0.07376 / 1)
>>> Color("rec2020", [0.86727, 0.64078, 0.18496]).to_string()
'color(rec2020 0.86727 0.64078 0.18496)'


from coloraide import Color as Base
from coloraide.spaces.rec2020 import Rec2020

class Color(Base): ...


Last update: September 10, 2023