Check the WCAG contrast ratio of text and background colors.
The color contrast checker calculates the contrast ratio between a text color and a background color with the WCAG 2 formula, and tells you whether the pair passes the AA and AAA levels for normal text, large text and user interface components.
Low contrast makes text hard to read for many people, especially on phones in sunlight and for people with low vision. Accessible contrast is also part of many legal accessibility requirements.
The official relative luminance formula.
Normal text, large text and UI components.
See the text on the background.
HEX, short HEX, RGB, HSL and color names.
WCAG AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.
At least 24 px (18 pt) regular, or 18.7 px (14 pt) bold.
No, logos and decorative images are exempt.
WCAG thresholds are strict: the ratio must not be rounded up.