Use this module to determine whether colors may be used together.
For a given WCAG level, calculate whether two colors have enough contrast with each other to be used together (e.g., as a background and text color combination).
To meet AA level sufficiently, follow these standards. To meet AAA level sufficiently, follow these standards.
TODO (consider this a headsup on likely API changes!):
See an example here: https://ellie-app.com/3CgJZNMyxw3a1.
Calculate the contrast between two colors.
See an example here: https://ellie-app.com/3CgJZNMyxw3a1.
Read more about levels of conformance at WCAG.