Class ColorContrastAssessor

Evaluates if two colors meet the AA or AAA contrast standard of the Web Content Accessibility Guidelines (WCAG).
To learn more about WCAG, visit https://www.w3.org/WAI/standards-guidelines/wcag/.

Constructors

Methods

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    • colorA: string
    • colorB: string

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean