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

    Function oklchToHSL

    • Converts a color from OKLCh to HSL color space.

      This function first converts the OKLCh color to RGB, then from RGB to HSL. The HSL color space is a cylindrical representation of RGB, using hue, saturation, and lightness components. Gamut mapping is performed during the conversion to ensure the resulting color is within the valid RGB gamut.

      Parameters

      Returns HSLColor

      The color in HSL space