Color Contrast Checker

Test any text and background color pair against WCAG accessibility standards and see if it passes. No signup. Ideal for accessible, readable web and app design.

Remove Ads
Large sample text
Normal body text sample — the quick brown fox jumps over the lazy dog.
Contrast ratio
StandardNormal textLarge text
WCAG AA
WCAG AAA

AA needs 4.5:1 (normal) / 3:1 (large ≥18.66px bold or 24px). AAA needs 7:1 / 4.5:1.

Remove Ads

This color contrast checker tests any text and background color pair against WCAG accessibility standards, telling you whether the combination is readable enough, directly in your browser. Enter the two colors and see the contrast ratio and pass or fail result. No account, no install, so designers and developers can ensure accessible, readable color choices on any device.

How to Check Color Contrast Step by Step

  1. Enter the text color. Provide the color of your text, usually as a hex code. This is the foreground color that must be readable against the background.
  2. Enter the background color. Provide the background color the text sits on. The contrast between these two colors determines how readable the text is.
  3. Read the contrast ratio. The tool calculates the contrast ratio between the two colors, a number that measures how much they differ in brightness, which is what makes text legible.
  4. Check the pass or fail result. The checker shows whether the pair passes the WCAG standards for normal and large text, telling you if the combination is accessible.
  5. Adjust if it fails. If the contrast is too low, darken or lighten one color and check again until the pair passes the standard for your text size.
Color contrast checker showing a ratio and pass result

What Color Contrast Is and Why It Matters

Color contrast is the difference in brightness between text and its background, and it is fundamental to readability. Text that is too similar in brightness to its background is hard to read for everyone and impossible for some. Good contrast ensures that letters stand out clearly, which matters enormously for people with low vision, color vision deficiencies, or those using screens in bright sunlight. Contrast is one of the most important factors in accessible design.

The Web Content Accessibility Guidelines, known as WCAG, set the international standards for accessible web content, including specific requirements for color contrast. WCAG expresses contrast as a ratio between the brightness of two colors, ranging from one to one, meaning identical, to twenty one to one, meaning black on white. The guidelines specify minimum ratios that text must meet to be considered accessible, based on research into what people can actually read.

AA requires 4.5 to 1 for normal text. The widely adopted WCAG AA standard requires a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text. These thresholds come from research into readability across different vision. Meeting them makes text accessible and is often a legal requirement.

WCAG defines levels of conformance, with AA being the widely adopted standard and AAA a stricter one. For normal text, AA requires a contrast ratio of at least 4.5 to 1, while large text, being easier to read, needs only 3 to 1. AAA raises these to 7 to 1 and 4.5 to 1. These thresholds are not arbitrary; they come from studies of readability across a range of vision, and meeting them is often a legal requirement.

Accessibility is increasingly a legal obligation, not just good practice. Many countries require public and commercial websites to meet accessibility standards, with WCAG AA as the common benchmark. Beyond compliance, accessible contrast simply makes content usable by more people, which is good for everyone and good for business. Checking contrast during design, rather than discovering problems later, is the efficient way to build content that is readable by all.

The WCAG Standards Explained

Text sizeAA minimumAAA minimum
Normal text4.5 to 17 to 1
Large text3 to 14.5 to 1
Ratio meaningHigher is more readable1:1 is identical, 21:1 is black on white
Common targetAA is the usual standardAAA is stricter, for higher accessibility

Who Needs a Color Contrast Checker

Web designersA designer checks that text and background color pairs meet the contrast standard, ensuring the design is readable and accessible before it is built.
Front end developersA developer verifies the contrast of text in their components against WCAG, catching accessibility issues during development rather than after launch.
Accessibility specialistsSomeone auditing a site for accessibility checks every text and background combination against the required contrast ratios to confirm compliance.
Brand and marketing teamsA team choosing brand colors checks that their combinations provide enough contrast for text, balancing brand identity with readability and legal compliance.
Content creatorsSomeone designing a graphic, a slide, or a page checks that their text will be readable against its background for the widest possible audience.
Designer checking text and background contrast for accessibility

Pro Tips for Accessible Color Choices

Aim for AA as a minimum. Target the WCAG AA standard, 4.5 to 1 for normal text and 3 to 1 for large text, as your baseline. It is the widely adopted benchmark and often a legal requirement, so meeting it should be non negotiable.
Remember large text has a lower bar. Large text is easier to read, so it needs less contrast, 3 to 1 for AA. This gives you more flexibility for headings and large display text than for body text, though more contrast is always better.
Do not rely on color alone. Contrast is about brightness difference, not just color. Two colors can be different hues but similar brightness and still fail. Check the actual ratio rather than assuming different colors provide enough contrast.
Test your brand colors early. Check brand color combinations for contrast before committing to them in a design, so you discover any readability problems while you can still adjust, rather than after everything is built.
Adjust brightness, not just hue. If a pair fails, changing the brightness of one color, making the text darker or the background lighter, is the most effective fix, since contrast depends on brightness difference.
Use with a color converter. Our Color Converter translates colors between hex, RGB and HSL, useful when adjusting brightness to meet the contrast requirement while keeping the color you want.

Common Color Contrast Mistakes to Avoid

Assuming different colors mean enough contrast. Two colors can be visibly different in hue but similar in brightness, giving poor contrast that fails the standard. Contrast depends on brightness difference, so always check the actual ratio rather than trusting that different colors are readable.
Ignoring contrast for light gray text. Light gray text on white is a common design trend that frequently fails contrast standards, making it hard to read for many people. Trendy low contrast text is a leading accessibility failure, so check it against the standard.
Only checking normal text. Different text sizes have different requirements, and it is easy to check body text but overlook other elements. Check all text, including headings, captions, and text in images, against the appropriate standard for its size.
Treating accessibility as optional. Accessible contrast is often a legal requirement, not just good practice, and it makes content usable by more people. Skipping contrast checks risks both legal exposure and excluding users, so build it into the design process.

To adjust colors while meeting contrast, our Color Converter translates between hex, RGB and HSL. When building color schemes, the CSS Gradient Generator and Random Hex Color Generator help, and you can check any generated color here.

Contrast ratio result against WCAG standards

Frequently Asked Questions

How do I check color contrast?

Enter your text color and your background color, usually as hex codes, and the tool calculates the contrast ratio between them and shows whether the pair passes the WCAG accessibility standards for normal and large text. If it fails, adjust the brightness of one color, making the text darker or the background lighter, and check again until the combination meets the required ratio for your text size.

What is a good contrast ratio?

Under the widely adopted WCAG AA standard, normal text needs a contrast ratio of at least 4.5 to 1, and large text needs at least 3 to 1. The stricter AAA standard requires 7 to 1 for normal text and 4.5 to 1 for large text. A higher ratio means more readable text, with 21 to 1 being pure black on white. Aim for at least AA as your minimum for accessible design.

What are the WCAG standards?

The Web Content Accessibility Guidelines, or WCAG, are the international standards for accessible web content, including specific requirements for color contrast. They express contrast as a ratio between the brightness of two colors and set minimum ratios that text must meet. WCAG defines conformance levels, with AA being the common benchmark and AAA stricter. These thresholds come from research into what people across a range of vision can actually read.

Why does color contrast matter for accessibility?

Because text that is too similar in brightness to its background is hard or impossible to read, especially for people with low vision, color vision deficiencies, or those using screens in bright light. Good contrast ensures letters stand out clearly, making content readable by the widest audience. It is one of the most important factors in accessible design and is often a legal requirement for websites.

What is the difference between AA and AAA?

AA and AAA are WCAG conformance levels. AA is the widely adopted standard, requiring 4.5 to 1 contrast for normal text and 3 to 1 for large text, and is the common legal benchmark. AAA is stricter, requiring 7 to 1 for normal text and 4.5 to 1 for large text, providing higher accessibility. Most sites target AA as their minimum, while AAA is pursued where the highest level of accessibility is needed.

Why does large text need less contrast?

Because larger text is inherently easier to read, its strokes being thicker and more visible, it can remain legible at a lower contrast ratio than small text. This is why WCAG sets a lower requirement for large text, 3 to 1 for AA rather than 4.5 to 1. It gives designers more flexibility for headings and large display text, though more contrast always improves readability for everyone.

Can two different colors still fail contrast?

Yes, absolutely. Contrast depends on the difference in brightness between two colors, not just whether they are different hues. Two colors can look distinctly different in color but have similar brightness, giving poor contrast that fails the standard and is hard to read. This is why you must check the actual contrast ratio rather than assuming that visibly different colors automatically provide enough contrast for readable text.

Is the color contrast checker free?

Yes, it is completely free with no account and no usage limit. You can check as many color pairs as you like against the WCAG standards, as often as you like, at no cost. It runs entirely in your browser on any device, so there is nothing to download or install, and the contrast ratio and pass or fail result appear instantly whenever you enter two colors.