Class ColorContrastAssessor
Constructors
Methods
Static
meetsContrastStandard
- meetsContrastStandard(colorA, colorB): boolean
Returns boolean
- meetsContrastStandard(colorA, colorB): boolean
Returns boolean
- meetsContrastStandard(colorA, colorB): boolean
Parameters
- colorA: string
- colorB: string
Returns boolean
- meetsContrastStandard(colorA, colorB, standard, fontSize): boolean
Returns boolean
- meetsContrastStandard(colorA, colorB, standard, fontSize): boolean
Returns boolean
- meetsContrastStandard(colorA, colorB, standard, fontSize): boolean
Returns boolean
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/.