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

    Function deltaEOK

    • Calculates the color difference (Delta E) between two colors in the OKLab color space.

      This function computes the Euclidean distance between two colors in the OKLab color space, which is designed to be perceptually uniform. This means that the same numerical difference corresponds to roughly the same perceived difference anywhere in the color space.

      Parameters

      • color: OKLabColor

        The first color in OKLab space

      • sample: OKLabColor

        The second color in OKLab space to compare against

      Returns number

      The color difference value (Delta E)