Converts an RGB color to the OKLab color space.
This function first converts the RGB color to XYZ, then from XYZ to OKLab. OKLab is a perceptually uniform color space designed to better represent how humans perceive color differences.
The RGB color to convert
Optional
Whether to adapt from D65 to D50 white point
The color in OKLab space
Converts an RGB color to the OKLab color space.
This function first converts the RGB color to XYZ, then from XYZ to OKLab. OKLab is a perceptually uniform color space designed to better represent how humans perceive color differences.