WCAG COLOR
CONTRAST CHECKER
Enter a text color and a background color. You get the exact WCAG contrast ratio and whether it passes AA and AAA — for normal text, large text, and UI — with a live preview. Runs entirely in your browser.
opticquiz-cvd on npm and PyPI.
QUESTIONS
AA wants at least 4.5:1 for normal text and 7:1 for AAA. Large text (≥18pt, or 14pt bold) needs 3:1 for AA and 4.5:1 for AAA. UI components and meaningful graphics need at least 3:1. Higher is always more legible; 21:1 is the max — black on white.
Each color is linearized from sRGB and weighted 0.2126 red, 0.7152 green, 0.0722 blue to get its relative luminance. The ratio is (lighter + 0.05) / (darker + 0.05). This page runs that exact formula on your device — nothing is uploaded.
No. Contrast is one criterion among many. Use this to fix color legibility early, and a full review for conformance.
No. This is a design tool for text/background legibility. The contrast sensitivity test measures your own eyes' ability to detect faint letters — a different thing entirely.