@dragonspark/chroma-kit
    Preparing search index...

    Function xyzToOKLCh

    • Converts a color from CIE XYZ to OKLCh color space.

      This function first converts the XYZ color to OKLab, then from OKLab to OKLCh. The OKLCh color space is a cylindrical representation of OKLab, using lightness, chroma (saturation), and hue components, with improved perceptual uniformity.

      Parameters

      • color: XYZColor

        The XYZ color to convert

      Returns OKLChColor

      The color in OKLCh space