Contrast Ratio Checker - WCAG AA & AAA Colour Test

Optimización de motores de búsqueda
  1. Home
  2. Developer Tools
  3. Contrast Ratio Checker
Share: Report

Contrast Ratio Checker

100% free · Runs 100% in your browser · Real WCAG 2.x contrast math · No signup needed

21.00 : 1
Excellent contrast — passes every WCAG level

Normal text

WCAG AA (4.5:1): PASS

WCAG AAA (7.0:1): PASS

Large text (18pt+, or 14pt+ bold)

WCAG AA (3.0:1): PASS

WCAG AAA (4.5:1): PASS

The quick brown fox jumps over the lazy dog

This is how normal body text looks in these colours — can you read it comfortably?

Text #000000 on background #FFFFFF

Contrast is calculated with the official WCAG relative-luminance formula, including sRGB linearization. Black on white scores the maximum possible 21.00:1.

Acerca de Contrast Ratio Checker

What Is a Contrast Ratio Checker?

A Contrast Ratio Checker is a free online tool that measures the contrast between two colours and tells you whether text in those colours is readable enough to meet accessibility standards. Pick a foreground colour and a background colour, and the tool instantly calculates the WCAG contrast ratio, a number from 1:1 to 21:1, and shows whether the combination passes or fails the AA and AAA levels for normal text and for large text. There is nothing to install and no account to create: the result appears in your browser in seconds, with a live preview of your text on your chosen background.

Contrast is the difference in brightness between text and the surface behind it, and it is one of the most important factors in readability. Black text on a white background has the maximum contrast ratio of 21:1. Light grey text on a white background might measure only 1.5:1, which looks stylish but is unreadable for many people, including older readers and people with low vision. The Web Content Accessibility Guidelines (WCAG) set minimum contrast ratios so that digital content works for everyone. Checking your colours before you publish is the simplest way to make sure your content is readable.

How the Contrast Ratio Checker Works

Using the checker is quick and takes less than a minute. First, choose your text colour using the colour picker or by typing a HEX code such as #1A1A1A. Then choose your background colour the same way, for example #FFFFFF for white. The tool instantly calculates the contrast ratio using the official WCAG formula, which compares the relative luminance, or perceived brightness, of the two colours. It then shows a clear pass or fail for each of the four WCAG checks: AA for normal text, AA for large text, AAA for normal text, and AAA for large text. A live preview shows your sample text in your colours, so you can judge the result with your own eyes as well as with the numbers.

The WCAG levels are simple once you know them. Level AA is the standard most websites aim for: normal text needs a contrast ratio of at least 4.5:1, while large text needs at least 3:1. Large text means text that is at least 18 points, or 14 points bold, roughly 24 pixels or 18.66 pixels bold on screen. Level AAA is the stricter standard: normal text needs at least 7:1, and large text needs at least 4.5:1. The checker shows all four results at once, so you can see exactly where your colour pair stands.

What the Checker Shows You

  • Contrast ratio: the exact WCAG ratio, from 1:1 up to 21:1.
  • AA normal text: pass or fail at the 4.5:1 minimum for body text.
  • AA large text: pass or fail at the 3:1 minimum for headings and large text.
  • AAA normal text: pass or fail at the strict 7:1 level.
  • AAA large text: pass or fail at the 4.5:1 level for large text.
  • Live preview: your sample text shown in your exact colours.
  • HEX and RGB values: the precise colour codes for both colours.

Why Contrast Matters for Accessibility

Good contrast is not a design nicety; it is a basic requirement for readable content. Around one person in twelve has some form of colour vision deficiency, millions of people live with low vision, and everyone struggles to read low-contrast text on a bright screen outdoors or on a dim screen at night. When text blends into its background, readers slow down, make mistakes, and give up, and that costs you visitors, customers, and trust. Accessible design is simply good design: a site that works for people with poor vision also works better for tired eyes, small phone screens, and cheap monitors. Checking contrast takes seconds, and it is the single easiest accessibility fix you can make.

Contrast also matters for your brand. Many beautiful brand palettes look wonderful as large blocks of colour but fail badly when used for small text, and designers often discover this too late, after a website has already launched. Testing your brand colours against the checker before you build saves expensive redesigns later. If your brand colour fails on white, you do not have to abandon it: use it for headings, or use a darker shade of the same colour for body text. The checker helps you make those decisions with numbers instead of guesses, so your brand stays recognisable and your text stays readable at the same time.

Great Ways to Use a Contrast Ratio Checker

Web designers use the tool to test every text and background combination on a new site, from body copy and links to buttons and form labels, before the site goes live. Content creators use it to check the text on their slides, thumbnails, and social media graphics. Developers use it to audit an existing website, working through the main colour pairs and fixing the failures one by one. Marketing teams use it to test call-to-action buttons, because a button nobody can read is a button nobody clicks, and a darker button text can lift conversions without changing the design.

The checker pairs well with the other colour and design tools on this site. Once you have a palette you like, use the Random Color Palette Generator to explore harmonious five-colour schemes, then test each pairing here before you commit. The Color Mixer helps you blend two colours into the exact shade you need, and the CSS Gradient Generator turns your chosen colours into smooth backgrounds for your site. If you want to pull colours from a photo you love, the Image Color Picker extracts the exact HEX codes for you to test.

If you are designing a website and want it to look great and read clearly, FistHost shared hosting starts at just $0.99/month, and the annual plan includes a free domain. You can launch a design portfolio, a business site, or a blog in minutes, with one-click installs and friendly support to help you get started.

Tips for Passing WCAG Contrast Checks

Aim for AA on every piece of text, and treat AAA as a bonus for your most important content. If a colour pair fails, adjust the lightness before you change the hue: darkening text or lightening the background usually fixes the ratio while keeping your colour scheme intact. Be careful with grey text, which is the most common failure: a medium grey on white often looks fine to a designer on a good monitor but fails the 4.5:1 test badly, so use dark greys for body text and reserve light greys for large headings or decorative elements. Never rely on colour alone to convey meaning, such as red text for errors without an icon or label, because some readers cannot see the colour difference at all. Test your colours on a real phone in daylight, not just on your office monitor.

Frequently Asked Questions

Is the Contrast Ratio Checker free?

Yes, it is completely free with unlimited checks and no account or payment required. Just open the page and start testing colours.

What is a good contrast ratio?

A ratio of at least 4.5:1 is good for normal text and meets the WCAG AA standard. A ratio of 7:1 or higher meets the stricter AAA standard for normal text. Large text needs at least 3:1 for AA and 4.5:1 for AAA. The higher the ratio, the easier the text is to read.

What is the difference between AA and AAA?

AA is the standard level that most websites are expected to meet, with 4.5:1 for normal text and 3:1 for large text. AAA is the enhanced level, with 7:1 for normal text and 4.5:1 for large text. AAA is harder to achieve and is recommended for the most important content.

What counts as large text in WCAG?

Large text means text that is at least 18 points, or 14 points bold, which is about 24 pixels, or 18.66 pixels bold, on screen. Headings and display text usually qualify, while body copy almost never does.

Can I check a colour from an image or a brand guide?

Yes. If you know the HEX code, type it directly into the checker. If you only have an image, use the Image Color Picker on this site to find the exact HEX code first, then paste it here to test it.

Readable text is the foundation of good design, and the Contrast Ratio Checker makes it easy to get right. Test your colours, fix the failures, and publish with confidence knowing that everyone can read what you worked so hard to write. Try it now and see whether your favourite colour combination passes the test.

Ready to build an accessible website of your own? FistHost shared hosting from $0.99/month, with a free domain on the annual plan, gives you an affordable home for a design portfolio, a business site, or a project you are proud to show the world.

User Reviews

No reviews yet. Be the first to review this tool!

Write a Review

★★★★★

Captcha

Reviews are protected by captcha and moderated before they appear.


Pro

Built for Creators

Fast hosting for blogs,
stores and portfolios

Create Now
Domains Find Your Perfect Domain Search top extensions · at honest prices Search Domains