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

    Interface OKLabColor

    Represents a color in the OKLab color space.

    The OKLab color space is a perceptually uniform color space designed to better represent how humans perceive color differences. It improves upon the traditional Lab color space by providing more accurate color interpolation and better hue linearity.

    interface OKLabColor {
        a: number;
        alpha?: number;
        b: number;
        l: number;
        space: "oklab";
        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)

    l: number

    The lightness component (0-1)

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