Skip to main content

Contrast checker

Check color pairs against WCAG text thresholds.

Aa · 18.75:1

Small details make a big difference.

This preview uses your selected colors.
PassAA normal text · 4.5:1
PassAA large text · 3:1
PassAAA normal text · 7:1
PassAAA large text · 4.5:1
137 characters

About Contrast checker

Test whether a text color has enough contrast against its background under the supported WCAG contrast calculation. Use the same colors that will actually appear in the interface.

Steps, example, and limitations

How to use it

  1. Enter the foreground and background colors.
  2. Review the contrast ratio and the normal- and large-text results.
  3. Adjust the colors and check the sample again.

Example

Input

Foreground: #000000
Background: #ffffff

Result

Contrast ratio: 21:1

Things to know

  • Contrast is one part of accessibility, not a complete accessibility audit.
  • Transparency, background images, text size, and font weight can affect the real use case. Test the final rendered design too.

Navigation

Find a tool

Favorites, recent, and quick access

Image compressorReduce image file size with adjustable quality.
JSON formatterFormat, validate, and minify JSON data.
Merge PDFCombine multiple PDF files into one document.
Password generatorGenerate random passwords with configurable character sets.

Preferences

These preferences are saved only in this browser.

Tool input stays in memory and is cleared when you leave the page. Downloaded files are managed by your browser. AI model caches, when used, are separate from these preferences.