Skip to content

colorSpace

Color space identifier per DTCG Color §4.2 (e.g. ‘srgb’, ‘oklch’, ‘display-p3’).

Path

…elements.<element>.styles.ColorObject.colorSpace

Value

  • "srgb" — The standard web colour space. Three components, red, green and blue.
  • "srgb-linear" — sRGB without its transfer function, so component values are proportional to light intensity.
  • "hsl" — sRGB addressed as hue, saturation and lightness.
  • "hwb" — sRGB addressed as hue, whiteness and blackness.
  • "lab" — Perceptually uniform, with a D50 white point. Lightness plus two opponent axes.
  • "lch" — CIELAB addressed as lightness, chroma and hue.
  • "oklab" — Perceptually uniform with improved hue linearity over CIELAB. Lightness plus two opponent axes.
  • "oklch" — Oklab addressed as lightness, chroma and hue.
  • "display-p3" — A wide-gamut RGB space covering more saturated colour than sRGB.
  • "a98-rgb" — A wide-gamut RGB space widely used in print workflows.
  • "prophoto-rgb" — A very wide-gamut RGB space used in photographic editing.
  • "rec2020" — The ultra-high-definition broadcast RGB space.
  • "xyz-d65" — Device-independent tristimulus values with a D65 white point.
  • "xyz-d50" — Device-independent tristimulus values with a D50 white point.

Required.

Decisions

None.

Source

FormatFile
JSON Schemapackages/schema/schema/styles.schema.json
TypeScriptpackages/schema/types/Styles.ts
Specification§4.1a, §11