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

    Function xyzToLab

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

      This function implements the standard XYZ to Lab conversion algorithm, which includes:

      1. Normalizing XYZ values by the reference white point
      2. Applying a non-linear transformation (cube root or linear approximation)
      3. Computing the L*, a*, and b* components

      The Lab color space is designed to be perceptually uniform, meaning that a change of the same amount in a color value should produce a change of about the same visual importance.

      Parameters

      • color: XYZColor

        The XYZ color to convert

      Returns LabColor

      The color in Lab space