Initializing, please wait a moment

Pick a foreground and background color; the ratio and AA / AAA pass-fail results update as you change them.

Color Contrast Checker (WCAG)


Check the contrast ratio between text and background colors against WCAG AA and AAA.

Pick a foreground and background color; the ratio and AA / AAA pass-fail results update as you change them.

Use the live preview to judge readability for normal and large text.

Everything runs in the browser - no upload and no account. Ratios use the W3C relative-luminance formula from WCAG 2.1. Closing the tab discards your color picks.

Typical use: validating a button label against its fill, checking body text on a brand background, or confirming large headings still meet AA before you ship CSS. For step-by-step clicks see the step-by-step guide; for when this fits versus desktop apps see when to use and vs alternatives.

← Back to developer tools

Related tools:

  • MD5 converter - Free online MD5 hash generator and MD5-to-text reverse lookup.
  • Convert PDF to TEXT online - Extract text from PDF online for copying and editing.
  • Text To HTML Editor - Text to HTML editor online - write in a WYSIWYG view and watch the generated HTML update live, with
  • CSS Gradient Animator Generator - CSS gradient generator - build animated linear gradients with live preview; copy ready-to-paste CSS
  • CSS Minifier - Minify CSS online for faster page loads.
  • CSS UnMinifier - CSS unminifier online - beautify minified CSS with proper indentation, line breaks, and readable
  • JavaScript Minifier - JavaScript minifier online free - paste your JS, click Minify, and copy the compressed code.
  • JSON Parser By Tree View - Paste JSON to validate, format, and view it in a tree.
  • JavaScript UnMinifier - JavaScript unminifier online - reformat minified JS with indentation and line breaks for
  • Keyboard Test - Keyboard test online - press each key to highlight it, spot non-working keys, and verify Num Lock,
  • Text Diff - Text diff online - compare two text blocks and highlight added, removed, and changed characters,
  • Developer Tools - Developer tools to parse JSON, minify or unminify CSS/JS, compare text, and generate MD5 hashes.

Tags: #developer

Related guides:

Loading reviews...

Frequently Asked Questions

What does Color Contrast Checker (WCAG) do?

Check the contrast ratio between text and background colors against WCAG AA and AAA.

How do I use the checker?

Pick a foreground and background color; the ratio and AA / AAA pass-fail results update as you change them.

What formula does the ratio use?

Ratios use the W3C relative-luminance formula from WCAG 2.1.