WCAG Color Contrast Checker
This checker calculates the relative luminance contrast ratio for two sRGB colors and compares the result with common WCAG thresholds.
Workspace
What Is the WCAG Color Contrast Checker?
The WCAG Color Contrast Checker measures the contrast ratio between a text color and its background color, using the formula in the Web Content Accessibility Guidelines (WCAG). The ratio runs from 1:1 (no contrast, for example white text on a white background) to 21:1 (black text on a white background, the maximum). Designers and developers use it to check whether text is readable enough for people with low vision or color vision differences.
How to Use the WCAG Color Contrast Checker
- Pick the foreground (text) color and the background color as hex values, for example #000000 text on #FFFFFF background.
- Enter the text color in the Text colour (hex) field and the background color in the Background colour (hex) field. Both accept 3-digit or 6-digit hex, with or without the #.
- Click Check contrast — or just type: the result updates live as you edit either color.
- Read the result table: the contrast ratio, and a Pass or Fail for AA normal text (4.5:1), AA large text (3:1), AAA normal text (7:1) and AAA large text (4.5:1).
- The tool starts with a sample pair already loaded (#1c2733 text on #ffffff, ratio 15.14:1), so you can see a passing result before you type anything.
Worked Example
Black text (#000000) on a white background (#FFFFFF) has a contrast ratio of 21:1, the highest possible. It passes WCAG AA and AAA for normal text and large text. A second pair, medium gray text #767676 on a white background, has a ratio of about 4.54:1. That passes AA for normal text (needs 4.5:1) but fails AAA for normal text (needs 7:1). For reference, entering #000000 and #FFFFFF returns a ratio of 21.00:1 and Pass for all four checks (AA and AAA, normal and large text).
Limitations
A ratio alone also does not guarantee readability: font size, font weight, text over images, color-only meaning, and user settings such as forced colors all matter. The checker also does not test color blindness, focus indicators, or non-text contrast such as icons and controls, which have their own WCAG criteria.
Frequently Asked Questions
What ratio do I need for normal body text?
WCAG AA requires at least 4.5:1 for normal text. WCAG AAA requires at least 7:1 for normal text.
What counts as large text?
WCAG defines large text as at least 18 point (24 px), or 14 point (about 18.66 px) bold. Large text needs only 3:1 at AA and 4.5:1 at AAA.
Does passing a ratio mean the design is accessible?
No. Contrast is one requirement. You still need readable font sizes, text that is not conveyed by color alone, visible focus states, and real user testing.
What if my color is not a valid hex value?
The tool shows an error asking you to enter both colors as hex values, for example #1c2733. It accepts 3-digit hex (such as #fff) and values with or without the #.
Related Tools
From the Blog
How to Split a Bill Fairly (With Tip and Tax, Without the Awkward Maths)
Quick Answer Agree the method before ordering, split the food by what each person ordered, and split tax and tip in proportion…
Read article →How to Use the Pomodoro Technique to Actually Finish Your Work
Most productivity advice tells you what to do and leaves the when to you. That is exactly where the day falls apart.…
Read article →How to Merge PDF Files Into One Document (Without Losing Pages)
You have five PDFs. Your bank wants one file. Your university wants one file. Your client wants one file. Merging them is…
Read article →