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

    Function rgbToLab

    • Converts an RGB color to the CIE Lab color space.

      This function first converts the RGB color to XYZ, then from XYZ to Lab. The Lab color space is designed to be perceptually uniform and device-independent.

      Parameters

      • color: RGBColor

        The RGB color to convert

      Returns LabColor

      The color in Lab space