Checks whether two colors have enough contrast with each other to be used together (e.g., as a background and text color combination). Returns the WCAG Rating level.
To meet AA level sufficiently, follow these standards. To meet AAA level sufficiently, follow these standards.
Read more about levels of conformance at WCAG.