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

    Interface OKLChColor

    Represents a color in the OKLCh color space.

    The OKLCh color space is a cylindrical representation of the OKLab color space, using Lightness, Chroma, and hue components. It provides improved perceptual uniformity compared to traditional LCh, making it better for color interpolation and manipulation tasks.

    interface OKLChColor {
        alpha?: number;
        c: number;
        h: number;
        l: number;
        space: "oklch";
        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

    alpha?: number

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

    c: number

    The chroma (saturation/colorfulness) component

    h: number

    The hue angle in degrees (0-360)

    l: number

    The lightness component (0-1)

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