Home › Color Tools › Color Contrast Checker
Color Contrast Checker · WCAG 2.1 compliance check · Live preview · client-side only
Input HEX or RGB values for your foreground (text) color and your background color. A live text preview updates to show how the combination looks at real scale.
The tool calculates the WCAG contrast ratio between the two colors using the relative luminance formula defined in the WCAG 2.1 specification.
Results display clear PASS or FAIL indicators for WCAG Level AA (minimum standard) and Level AAA (enhanced standard) at both normal text and large text sizes.
Generate palettes and validate each color pair here for accessibility.
Select exact foreground and background colors before running a contrast check.
Preview your color pairs under different types of color vision deficiency.
Convert your color codes into the format needed for contrast checking.