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

    Function labToHSL

    • Converts a color from CIE Lab to HSL color space.

      This function uses the automatic conversion system to find the optimal path from Lab to HSL, which typically goes through XYZ and RGB. Gamut mapping is performed during the conversion to ensure the resulting color is within the valid RGB gamut.

      Parameters

      • color: LabColor

        The Lab color to convert

      • OptionalperformGamutMapping: boolean = true

        Whether to perform gamut mapping

      Returns HSLColor

      The color in HSL space