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

    Interface LabColor

    Represents a color in the CIE Lab color space.

    The CIE 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. It's device-independent and based on the CIE XYZ color space.

    interface LabColor {
        a: number;
        alpha?: number;
        b: number;
        illuminant?: Illuminant;
        l: number;
        space: "lab";
        to: <
            T extends
                | "rgb"
                | "hwb"
                | "hsl"
                | "hsv"
                | "xyz"
                | "lab"
                | "lch"
                | "oklab"
                | "oklch"
                | "jzazbz"
                | "jzczhz",
        >(
            colorSpace: T,
        ) => CreatedColor<T>;
        toCSSString: () => string;
        toString: () => string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    a: number

    The green-red component (negative values are green, positive values are red)

    alpha?: number

    The alpha (opacity) component (0-1), optional

    b: number

    The blue-yellow component (negative values are blue, positive values are yellow)

    illuminant?: Illuminant

    The reference white point used for this color

    l: number

    The lightness component (0-100)

    space: "lab"
    to: <
        T extends
            | "rgb"
            | "hwb"
            | "hsl"
            | "hsv"
            | "xyz"
            | "lab"
            | "lch"
            | "oklab"
            | "oklch"
            | "jzazbz"
            | "jzczhz",
    >(
        colorSpace: T,
    ) => CreatedColor<T>
    toCSSString: () => string
    toString: () => string