This function first converts the OKLCh color to XYZ, then from XYZ to RGB.
Gamut mapping is performed during the XYZ to RGB conversion to ensure the
resulting color is within the valid RGB gamut. This prevents unexpected
results when working with colors that have high chroma values or are
otherwise outside the RGB gamut.
Converts a color from OKLCh to RGB color space.
This function first converts the OKLCh color to XYZ, then from XYZ to RGB. Gamut mapping is performed during the XYZ to RGB conversion to ensure the resulting color is within the valid RGB gamut. This prevents unexpected results when working with colors that have high chroma values or are otherwise outside the RGB gamut.