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

    Function oklchToJzCzHz

    • Converts an OKLCh color to the JzCzHz color space.

      This function first converts the OKLCh color to XYZ, then from XYZ to JzCzHz. The JzCzHz color space is a cylindrical representation of JzAzBz, using lightness, chroma (saturation), and hue components, with improved perceptual uniformity for both low and high luminance levels, making it suitable for HDR content.

      Parameters

      • color: OKLChColor

        The OKLCh color to convert

      • OptionalpeakLuminance: number = 10000

        The peak luminance of the display, in nits

      Returns JzCzHzColor

      The color in JzCzHz space