Color Contrast Checker
Check WCAG contrast ratios between two colors.Runs in this tab.⌘ ↵ runs it
Large Text Sample
Normal text sample — The quick brown fox jumps over the lazy dog.
21.00:1
PASS — Normal Text AA (4.5:1)
PASS — Normal Text AAA (7:1)
PASS — Large Text AA (3:1)
PASS — Large Text AAA (4.5:1)
Next step
AtriumKitFrom the team behind browserutils
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeAbout Color Contrast Checker
Free online color contrast checker. Verify WCAG 2.1 contrast ratios for text and background color combinations to ensure accessibility compliance. It runs in your browser. Nothing is sent to a server.
Questions
What WCAG contrast ratio is required?
WCAG 2.1 requires a minimum contrast ratio of 4.5:1 for normal text (AA) and 7:1 for enhanced contrast (AAA). Large text requires 3:1 for AA and 4.5:1 for AAA.
How is contrast ratio calculated?
Contrast ratio is calculated using the relative luminance of two colors according to the WCAG 2.1 formula: (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color luminance.
What counts as large text under WCAG?
Large text is defined as 18pt (24px) and above at normal weight, or 14pt (18.66px) and above at bold weight. Large text has lower contrast requirements because it is easier to read.
How do I fix a failing contrast ratio?
Darken the text color or lighten the background (or vice versa) until the ratio meets the 4.5:1 threshold for AA. This tool shows the ratio in real time so you can adjust colors until they pass.
Comments
More in CSS & Design
- Color Converter
- CSS Gradient Generator
- Box Shadow Generator
- PX to REM Converter
- Color Palette Generator
- Tailwind Color Picker
- CSS Animation Generator
- CSS Flexbox Generator
Comments