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

    Function hsvToOKLCh

    • Converts an HSV color to the OKLCh color space.

      This function first converts the HSV color to RGB, then from RGB to OKLCh. OKLCh is a cylindrical representation of OKLab, using lightness, chroma (saturation), and hue components, with improved perceptual uniformity over traditional LCh.

      Parameters

      • color: HSVColor

        The HSV color to convert

      • OptionaluseChromaticAdaptation: boolean = false

        Whether to adapt from D65 to D50 white point

      Returns OKLChColor

      The color in OKLCh space