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

    Function colorContrast

    • The contrast ratio between two colours, from 1 to 21, as WCAG defines it: text needs 4.5 against its background at level AA, or 3 when it is large.

      Parameters

      • first: Rgba

        One colour.

      • second: Rgba

        The other; the order does not matter.

      Returns number