Requires base (the source space) and gamutSpace (the RGB gamut). chroma names the
coordinate to rescale (default "c").
OptionalaliasesThis space's ancestors, ordered closest first (immediate base → root), excluding this space
OptionaldisplaySpaces to try when serializing for display and this space is not natively supported
OptionallinearMatrices relevant to this color space, keyed by a descriptive name
OptionalreferredOptionalrgbStaticDEFAULT_StaticregistryThe ID used by CSS, such as display-p3 or --cam16-jmh
StaticallOptionalformat: string | SpaceFormat | FormatOptionaloptions: { Optionalepsilon?: numberStaticfindOptionalspaces: Space[]StaticgetStaticregisterStaticresolve
A color space whose chroma-like coordinate is expressed relative to an RGB gamut: chroma = 1 is the most colorful in-gamut color for the rest of the coordinates, so any chroma in [0, 1] stays in gamut. The reduced coordinate (
chroma, default"c") is rescaled againstgamutSpace; every other coordinate is inherited unchanged frombase. Works for any base whose chroma coordinate brings the color into gamut as it is reduced (e.g. OKLCh, LCH).