Color Contrast Checker
Test a text and background colour against WCAG 2 AA and AAA, preview real text, and get the nearest colour that passes.
Contrast ratio
4.48:1
Large text is at least 24px (18pt) regular or 18.66px (14pt) bold. Ratios are never rounded up: 4.49:1 fails AA.
Live preview
Normal text (16px). The quick brown fox jumps over the lazy dog.
Large text (24px). The quick brown fox.
Large bold text (18.66px bold). The quick brown fox.
Suggest the nearest passing colour
Keeps the hue, saturation and opacity and changes only the lightness, by the smallest amount that reaches the target.
About colour contrast and WCAG
WCAG 2 measures contrast as a ratio between the relative luminance of two colours, from 1:1 (identical) to 21:1 (black on white). Level AA asks for 4.5:1 for normal text and 3:1 for large text; level AAA asks for 7:1 and 4.5:1. Since WCAG 2.1, icons, input borders and other meaningful graphics need 3:1 against their surroundings (success criterion 1.4.11).
Type or paste a colour in HEX, RGB, HSL or as a CSS name, or use the colour pickers and opacity sliders. Semi-transparent text is blended over the background first, because that is the colour people actually see. If a pair fails, the suggestion finds the nearest lighter or darker shade of the same hue that passes, so your palette keeps its character.
"Copy Share Link" puts both colours in a link for design reviews and bug reports. Everything runs in your browser; no colours are sent anywhere. To convert a colour between formats, use the Color Converter; to see how a design looks to people with colour blindness, use the Color Blindness Simulator.
Was this tool useful?
Thanks for your feedback!
Could not send your feedback. Please try again later.
Frequently Asked Questions
Level AA needs 4.5:1 for normal text and 3:1 for large text; level AAA needs 7:1 and 4.5:1. Icons, input borders and other meaningful graphics need 3:1 (WCAG 2.1, success criterion 1.4.11).
At least 24px (18pt) regular, or at least 18.66px (14pt) bold.
Semi-transparent text is blended over the background first, because that is the colour people see. A semi-transparent background is assumed to sit on a white page.
It keeps the hue, saturation and opacity and changes only the lightness, by the smallest step that reaches your target ratio. You can adjust either the text or the background.
Related Tools
All Accessibility Tools →Color Blindness Simulator
See an image as people with protanopia, deuteranopia, tritan...
Readability Score Checker
Get Flesch Reading Ease, Flesch-Kincaid, Gunning Fog, SMOG,...
PDF to Excel Converter
Extract tables from a PDF into an Excel spreadsheet (XLSX) w...
Repair PDF
Fix PDFs that will not open: rebuild the broken cross-refere...
Flatten PDF
Turn fillable form fields, comments and stamps into plain pa...
PDF to PDF/A Converter
Convert a PDF to PDF/A-2b (or 1b / 3b) for long-term archivi...