Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Function colorToOklab

    • Converts sRGB to OKLab with the matrices CSS Color 4 publishes.

      Parameters

      • rgba: Rgba

        Colour to convert.

      Returns { a: number; b: number; l: number }

      Lightness from 0 to 1 and the a and b axes.