SimplyToolbox
⌘K
ImageVideoPDFDeveloperCalculatorBlogAbout
HomeDeveloper ToolsColor Contrast Checker
🎯

Color Contrast Checker

Check WCAG 2.1 color contrast ratios for accessible web design.

Preview

Normal text — The quick brown fox jumps over the lazy dog.

Large text — The quick brown fox jumps over the lazy dog.

Heading Text

13.98:1Accessible

AA Normal Text

Pass

Min 4.5:1

AA Large Text

Pass

Min 3:1

AAA Normal Text

Pass

Min 7:1

AAA Large Text

Pass

Min 4.5:1

What the Color Contrast Checker does

This tool measures the contrast ratio between a text (foreground) color and a background color, then tells you whether that pairing meets the Web Content Accessibility Guidelines (WCAG) 2.1. Contrast is calculated from the relative luminance of each color using the official WCAG formula, producing a ratio between 1:1 (no contrast) and 21:1 (black on white). The result is shown as a large ratio with pass or fail badges for each compliance level.

It is aimed at designers, developers and content creators who want their interfaces to be readable by everyone, including people with low vision or color-vision deficiencies. Meeting these standards is also a common legal and procurement requirement for public-facing websites and apps.

How to use it

Pick your text color and background color using the color swatches, or type a hex value directly into either field. A live preview shows normal text, large text and a heading using your chosen colors so you can judge readability at a glance. The contrast ratio updates instantly as you change either color.

Below the preview, four badges show whether the combination passes WCAG AA and AAA for both normal and large text. The thresholds are 4.5:1 for normal AA text, 3:1 for large AA text, 7:1 for normal AAA text and 4.5:1 for large AAA text. If a pairing fails AA, the tool suggests accessible foreground colors that reach at least 4.5:1 against your background - click any suggestion to copy its hex code. Use the Swap button to quickly reverse foreground and background.

Understanding the WCAG levels

Large text is defined by WCAG as at least 18pt, or 14pt bold, which is why it is allowed a lower contrast threshold than body text. AA is the level most organizations aim for, while AAA is a stricter target for content that needs the highest readability. Meeting the ratio is one part of accessibility; you should also avoid relying on color alone to convey meaning.

Frequently Asked Questions

How is the contrast ratio calculated?▼
It uses the official WCAG 2.1 formula based on the relative luminance of each color. Ratios range from 1:1 for identical colors up to 21:1 for pure black on pure white.
What is the difference between AA and AAA?▼
AA requires 4.5:1 for normal text and 3:1 for large text, and is the common compliance target. AAA is stricter, requiring 7:1 for normal text and 4.5:1 for large text.
What counts as large text?▼
WCAG defines large text as at least 18 point, or 14 point when bold. Large text is allowed a lower contrast ratio because it is easier to read.
Does this tool send my colors anywhere?▼
No. All calculations run locally in your browser. Nothing about the colors you enter is sent to a server.
What are the suggested colors?▼
When a pairing fails AA, the tool proposes nearby foreground hex values that reach at least 4.5:1 against your chosen background. Click one to copy it and try it as your text color.
Is it free?▼
Yes, the checker is completely free to use with no account required.

You might also like

{ }

JSON Formatter

Format, validate and beautify JSON

📊

JSON to CSV

Convert JSON data to CSV format

🔄

CSV to JSON

Convert CSV to JSON format

🔐

Base64 Encoder/Decoder

Encode or decode Base64 strings

SimplyToolbox

90+ free online tools. No signup. No limits. Just tools that work.

AboutContactBlogPrivacy PolicyTerms of Use

Image & Video

  • Image Compressor
  • Image Resizer
  • Image Converter
  • Video Compressor
  • Video to GIF
  • Screen Recorder

PDF & Text

  • PDF Compressor
  • PDF Merger
  • PDF Splitter
  • Word Counter
  • Markdown Editor
  • Text Diff Checker

Developer

  • JSON Formatter
  • Base64 Encoder
  • Hash Generator
  • Password Generator
  • UUID Generator
  • Regex Tester

Tools & More

  • Unit Converter
  • BMI Calculator
  • Currency Converter
  • QR Code Generator
  • Color Picker
  • Gradient Generator

© 2026 SimplyToolbox. All rights reserved.

Processing happens in your browser — your files stay private.