Converts an RGB color to the OKLCh color space.
This function first converts the RGB color to OKLab, then from OKLab to OKLCh. OKLCh is a cylindrical representation of OKLab, using lightness, chroma (saturation), and hue components, with improved perceptual uniformity over traditional LCh.
The RGB color to convert
Optional
Whether to adapt from D65 to D50 white point
The color in OKLCh space
Converts an RGB color to the OKLCh color space.
This function first converts the RGB color to OKLab, then from OKLab to OKLCh. OKLCh is a cylindrical representation of OKLab, using lightness, chroma (saturation), and hue components, with improved perceptual uniformity over traditional LCh.