What color contrast means for accessibility
Color contrast is the difference in brightness between text and the background behind it. When it's too low, people with low vision, color blindness, or simply a phone in bright sunlight can't read the page. That's why contrast is one of the most common accessibility failures on the web — and one of the easiest to fix once you can measure it.
WCAG, the Web Content Accessibility Guidelines, turns readability into a number: the contrast ratio. It runs from 1:1 (the same color on itself) to 21:1 (black on white). A contrast checker for accessibility simply calculates that ratio for your two colors and compares it with the WCAG thresholds.