Skip to main content Crate chromashift Copy item path Source A98Rgb An RGB colour space with defined chromacities.
The components are: DisplayP3 A colour in the Display P3 colour space.
The components are: Hex An Hex representation of the sRGB colour space. Hsl An colour represented as Hue, Saturation, and Lightness expressed in the sRGB colour space.
The components are: Hsv An colour represented as Hue, Saturation, and Value expressed in the sRGB colour space.
The components are: Hwb An colour represented as Hue, Whiteness, and Blackness expressed in the sRGB colour space.
The components are: Lab An CIE defined colour space representing L - perceptual lightness, and two axes A & B.
The components are: Lch A cylindrical colour space representing within the CIE colour space.
The components are: LinearRgb A device independent expression of RGB. No exactly defined chromacities.
The components are: Oklab A more adequate expression of LAB, in the CIE colour space.
The components are: Oklch A more adequate expression of LCH, in the CIE colour space.
The components are: ProphotoRgb A colour in the ProPhoto RGB colour space (ROMM RGB).
The components are: Rec2020 A colour in the Rec. 2020 colour space.
The components are: Srgb An RGB colour space with defined chromacities.
The components are: XyzD50 A colour expressed as X, Y and Z values, expressed in the CIE XYZ tristimulus colour space, with an explicit D50
white point.
The components are: XyzD65 A colour expressed as X, Y and Z values, expressed in the CIE XYZ tristimulus colour space, with an explicit D65
white point.
The components are: Color HueInterpolation A direction to interopolate hue values between, when mixing colours. Named ToNamedError WcagLevel WCAG 2.1 color contrast levels COLOR_EPSILON ColorDistance Trait for calculating perceptual color distance between colors. ColorMix Trait for calculating mixing two colors together. ColorMixPolar Trait for calculating mixing two colors together, with a hue direction for Polar colour spaces. Gamut Whether a colour is within the natural bounds of its colour space, and the ability to produce a naively clamped
version or a perceptually gamut-mapped version. ToAlpha Trait for extracting the alpha channel of a color. WcagColorContrast Trait for calculating WCAG specified color contrast between colors.