Returns the colour for given Oklab coordinates, which is a perceptually uniform colour space inspired by CIELAB but which handles blue hues more accurately.
A white point is not specified because Oklab assumes a standard d65 daylight illuminant.
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11
Modulecolour-2.3.7Haskell98
Functions for converting Colour values to and from the Oklab space, and convenience functions for the derived Oklch space. See https://bottosson.github.io/posts/oklab/.
Returns the colour for given Oklab coordinates, which is a perceptually uniform colour space inspired by CIELAB but which handles blue hues more accurately.
A white point is not specified because Oklab assumes a standard d65 daylight illuminant.
Returns the Oklab coordinates of a colour, which is a perceptually uniform colour space inspired by CIELAB but which handles blue hues more accurately.
A white point is not specified because Oklab assumes a standard d65 daylight illuminant.
okLCh Constructs a colour from a lightness, chroma, and hue given in LCh polar coordinates correspondong to an Oklab coordinate.
Returns the Oklab LCh coordinates of a colour. The lightness coordinate is the same as in Oklab, while the chroma C and hue h are the (a,b)-coordinates expressed in polar form.