Close Menu
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn WhatsApp Telegram
Monday, September 14
  • About
  • Contact
  • Advertise
  • Disclaimer
  • Privacy Policy
  • Editorial Policy
  • Tools
  • Games
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
JustwebworldJustwebworld
Home » Tools » Design & Color » WCAG Contrast Checker

WCAG Contrast Checker

Michael Austin Updated:August 24, 2026

Check any text/background color pair against WCAG 2.1 — exact contrast ratio, AA and AAA verdicts for normal and large text, plus a same-hue fix suggestion when it fails.

The most measurable accessibility rule

Pick a text color and a background; the checker computes the exact WCAG 2.1 contrast ratio — relative luminance from linearized sRGB, then (L1+0.05)/(L2+0.05), the same formula Lighthouse and axe use — and scores every threshold at once: AA and AAA, normal and large text, plus the 3:1 requirement for UI components like borders and icons.

The thresholds, in one place

  • AA normal text: 4.5:1 — the legal baseline in most jurisdictions.
  • AA large text: 3:1 (large = 18pt/24px regular, or 14pt/18.66px bold — the WCAG definition, restated in the report so nobody has to look it up).
  • AAA: 7:1 normal / 4.5:1 large — worth targeting for body text.
  • Non-text UI: 3:1 for meaningful graphics and component boundaries.

The fix suggestion

When a pair fails AA, the checker walks the text color’s OKLCH lightness — hue and chroma held — until it passes 4.5:1, and shows that color with its real ratio. Your brand hue survives; only the lightness moves. For a full candidate list per background, continue to the Accessible Text Color Generator.

Worked example

#9ca3af on #ffffff → 2.54:1
  AA normal FAIL · AA large FAIL · UI FAIL
  Suggested fix: #6b7280 → 4.83:1

Limitations — stated honestly

  • Contrast is necessary, not sufficient: color-only meaning, focus visibility and text over images need separate checks.
  • Ratios are computed for solid colors; text over gradients or images must be checked at the worst point.
  • WCAG 2.x math slightly under-penalizes light-on-dark pairs (the issue APCA in WCAG 3 drafts addresses) — but 2.1 remains the standard you are audited against today.

How to use the WCAG Contrast Checker

  1. Pick the text color and the background color.
  2. Read the live ratio and the AA/AAA badges on the sample text.
  3. If it fails, use the suggested same-hue fix in the report.
  4. Copy the report for your accessibility review.

Frequently asked questions

What ratio do I need to pass WCAG?

4.5:1 for normal text and 3:1 for large text (18pt/24px regular, or 14pt/18.66px bold) at level AA; 7:1 and 4.5:1 at AAA. Non-text UI components like input borders and icons need 3:1. The checker scores all five thresholds at once.

How is the ratio calculated?

Per WCAG 2.x: relative luminance of each color from linearized sRGB, then (L1+0.05)/(L2+0.05). It is the standard formula — the same one audit tools and browsers use — so results match Lighthouse and axe.

What does the suggested fix do?

It keeps your hue and chroma and walks the OKLCH lightness until the pair passes 4.5:1 — so the fixed color still looks like your color, just darker or lighter. It appears whenever the AA normal-text check fails.

Does passing the ratio guarantee accessibility?

No — contrast is one criterion. Color-only meaning (red vs green with no other cue), focus visibility and text over images need their own checks. The ratio is necessary, not sufficient.

Step 1 of 3

Fix text that fails contrast

A text colour that meets WCAG on your background, chosen rather than guessed.

  1. 1WCAG Contrast Checker you are hereMeasure what the current pairing actually scores.
  2. 2Accessible Text Color GeneratorGet a text colour that passes on that background.
  3. 3Accessible Color Pair GeneratorFind further pairings that hold up across the design.

Next: Accessible Text Color Generator

Related accessibility tools

More in Design & Color.

  • OKLCH Color Generator — Mix colors directly in OKLCH with lightness, chroma and hue sliders — live preview, sRGB gamut warnings, and CSS output with hex/rgb/hsl fallbacks.
  • Light/Dark Theme Generator — Generate coordinated light and dark theme tokens from one brand color — with your choice of dark-mode strategy: .dark class, prefers-color-scheme, or the CSS light-dark() function.
  • Semantic Color Token Generator — Turn five brand colors into semantic tokens — primary, success, warning, danger, info — each with hover, active, subtle, border, strong and on-color slots, ready for CSS or Tailwind v4.
  • Tailwind Form Generator — Generate accessible Tailwind form markup — labeled inputs, select, textarea, consent checkbox, focus rings and an aria-wired error-state pattern — the boilerplate done right once.
  • Color Information and Analyzer — See everything about one color on one screen: all format values, relative luminance, WCAG contrast against black and white, the higher-contrast text color to put on it, its hue family, OKLCH coordinates, approximate color temperature, closest CSS name and how it survives a color-blindness simulation.
  • Color Difference Calculator — Measure how different two colors really look.

cards
Powered by paypal
Follow on WhatsApp Follow on Telegram
Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram WhatsApp Copy Link
Previous ArticleFigma Token JSON Generator
Next Article Accessible Text Color Generator
Michael Austin
  • Website
  • Facebook
  • X (Twitter)
  • Pinterest
  • Instagram
  • LinkedIn

Michael Austin is the current owner of Justwebworld and manages the platform’s editorial direction, content strategy, and digital publishing operations. With a strong interest in online media and modern publishing, he focuses on creating informative, engaging, and easy-to-understand content across multiple categories.Under his leadership, Justwebworld continues to grow as a trusted multi-niche digital publication covering technology, business, lifestyle, automotive, sports, travel, and trending internet topics for readers worldwide.

Related Posts

Store Credit Card Logins: Issuers, Portals & Phone Numbers

CT Scan Procedure Explained: Step-by-Step Guide for Patients

Refreshing Summer Sips and Fruit Beverages to Serve Your Guests

IRS and Colorado Tax Debt: The Relief Programs Denver Taxpayers Should Know

Where Should NRIs Keep Money for Everyday Expenses in India?

The Role of Data Analytics in Health Insurance Pricing

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 41.9K other subscribers
Categories
Latest Posts

Store Credit Card Logins: Issuers, Portals & Phone Numbers

CT Scan Procedure Explained: Step-by-Step Guide for Patients

Refreshing Summer Sips and Fruit Beverages to Serve Your Guests

IRS and Colorado Tax Debt: The Relief Programs Denver Taxpayers Should Know

Where Should NRIs Keep Money for Everyday Expenses in India?

The Role of Data Analytics in Health Insurance Pricing

Filing a Personal Injury Claim in Durham

Looking for Easy Banking After Retirement? Consider a Digital Savings Account

Can I Get ₹1.5 Crore Term Insurance on a ₹10 Lakh Salary?

How to Switch Your Car Insurance Company Without Losing Your Benefits?

The content on this website is provided solely for educational and informational purposes. We do not promote, endorse, or deal in any products, services, or activities mentioned. While we strive to share accurate and up-to-date information, we make no warranties regarding completeness, reliability, or accuracy. Any action you take based on the information found here is strictly at your own risk, and we will not be liable for any losses or damages in connection with the use of our website.

DMCA.com Protection Status
Justwebworld

Explore knowledge, feed curiosity — trusted by readers since 2012.

Explore Topics
TechBusinessDigitalMoneyLearnPeopleLifestyleCultureHealthHomeTravelGamingFashionAutoFoodMindLawSportsShoppingAI
Popular Tools
Age CalculatorWord CounterCase ConverterLove CalculatorReading TimePeriod CalculatorNumber to WordsAngel NumberHarry Potter NameDemon NameKingdom NameAll Tools →
Popular Games
Bubble BlastSudokuTruth or Dare WheelYes / No WheelAll Games →
Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn WhatsApp Telegram Threads RSS
  • About
  • Contact
  • Advertise With Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions
  • Editorial Policy
  • Write for Us
Copyright © 2012-2026. Justwebworld - All Rights Reserved. | Sitemap

Type above and press Enter to search. Press Esc to cancel.