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

    Function labToXYZ

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

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

      1. Computing the f(x), f(y), and f(z) values from L*, a*, and b*
      2. Applying the inverse non-linear transformation to get normalized XYZ values
      3. Scaling by the reference white point

      Parameters

      • color: LabColor

        The Lab color to convert

      • Optionalilluminant: Illuminant

        The reference white point to use (defaults to D65)

      Returns XYZColor

      The color in XYZ space with the specified illuminant