Skip to content

REC. 2100 PQ

The Rec. 2100 PQ is registered in Color by default

Properties

Name: rec2100-pq

White Point: D65 / 2˚

Coordinates:

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

Rec. 2020

CIE 1931 xy Chromaticity – Rec. 2100 Chromaticities (Same as Rec. 2020)

BT.2100, more commonly known by the abbreviations Rec. 2100 or BT.2100, introduced high-dynamic-range television (HDR-TV) by recommending the use of the perceptual quantizer (PQ) or hybrid log–gamma (HLG) transfer functions instead of the traditional "gamma" previously used for SDR-TV. Rec. 2100 PQ specifically uses the perceptual quantizer.

The actual gamut of Rec. 2100 uses the same wide color gamut of Rec. 2020, but the color space itself supports an HDR range.

Learn about REC.2100

Channel Aliases

Channels Aliases
r red
g green
b blue

Input/Output

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

color(rec2100-pq 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("rec2100-pq", [0, 0, 0], 1)

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

>>> Color("rec2100-pq", [0.53255, 0.32702, 0.22007], 1)
color(rec2100-pq 0.53255 0.32702 0.22007 / 1)
>>> Color("rec2100-pq", [0.55101, 0.49099, 0.30009], 1).to_string()
'color(rec2100-pq 0.55101 0.49099 0.30009)'

Registering

from coloraide import Color as Base
from coloraide.spaces.rec2100_pq import Rec2100PQ

class Color(Base): ...

Color.register(Rec2100PQ())