ecsot
ToolsCategoriesBlogAboutContact
ecsot

Easy Conversions, Simple Online Tools

Useful things. Made simple.

A growing collection of simple, thoughtful online tools for everyday digital tasks.

© 2026 ecsot. All rights reserved.

Product

  • All Tools
  • Categories
  • Blog
  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Stay updated

New tools, useful updates and more.

Featured On
Launched on MarketingDBLaunched on MarketingDB

© 2026 ecsot. All rights reserved.

Made with ♡ for a simpler internet.

HomeToolsDesignWCAG Contrast Checker

WCAG Color Contrast Checker

Verify color accessibility against WCAG 2.1 and 2.2 standards in real-time. Features Level AA/AAA compliance checks, live UI component preview, color blindness (CVD) simulation, and one-click auto-adjustment. 100% private in-browser.

FastInstant WCAG 2.1 math
Private100% in-browser
Free to useFull CVD simulation & auto-fix
WCAG 2.1 Contrast RatioLevel AAA

17.85:1

Optimal readability

Excellent contrast! Exceeds WCAG AAA requirements for all typography and UI elements.

Sample TextThe quick brown fox
#0f172a#ffffff

Color Pair Inputs

Compliance Breakdown by Criteria

Body Typography<18pt (<24px)

Normal Body Text

Standard paragraph text, list items, tables, and dense data labels.

Level AA (4.5:1)
Pass
Level AAA (7.0:1)
Pass
Display & Headings18pt+ / 14pt+ bold

Large Text & Titles

Main section titles (H1–H3), hero statements, and emphasized subtitles.

Level AA (3.0:1)
Pass
Level AAA (4.5:1)
Pass
Graphical ElementsWCAG 2.1 Criteria 1.4.11

UI Components & Icons

Form input borders, radio/checkbox rings, status icons, and diagram bars.

Level AA (3.0:1)
Pass
AAA has no non-text criteriaN/A

Live UI Component Preview

Test real-world rendering across typography, buttons, inputs, and interactive surfaces.

Accessibility Benchmark18pt / 24px Headline

Empowering Accessible Digital Experiences

Visual accessibility ensures that every reader can comfortably consume content without strain. When contrast ratios exceed WCAG AA (4.5:1), cognitive comprehension increases and fatigue drops sharply across mobile screens in bright sunlight and low-light nocturnal environments.

Protected & Verified In-BrowserComplies with standard WCAG 2.1 specifications.
Active Status

Color Blindness Simulator (CVD)

Simulated using Brettel / Machado linear matrix models across ~8% of the global population.

Standard VisionAA
~92% of population
Sample Aa
17.85:1#0f172a

Trichromatic vision with standard perception across all three cone types.

ProtanopiaAA
~1% of males
Sample Aa
18.33:1#121325

Red-weakness or absence of L-cones; reds appear dark or brownish-gray.

DeuteranopiaAA
~5% of males
Sample Aa
18.56:1#121124

Green-weakness or absence of M-cones; difficulty distinguishing reds and greens.

TritanopiaAA
~0.01% of population
Sample Aa
16.52:1#0f2221

Blue-weakness or absence of S-cones; difficulty distinguishing blues and greens.

AchromatopsiaAA
~0.003% of population
Sample Aa
17.93:1#171717

Total color blindness; vision perceived exclusively in shades of gray.

Accessible Color Pair Presets

Curated palettes certified for Level AA and AAA compliance across diverse themes.

Export Contrast AssetsCopy production CSS rules, full markdown audit reports, or JSON metrics.

How the WCAG Contrast Checker Works

Professional in-browser color luminance calculation following official W3C guidelines.

1

Select Foreground & Background Colors

Pick or type any Hex code for your text color and surface background. Use the eye-dropper, sliders, or preset library.

2

Instant WCAG 2.1 & 2.2 Ratio Evaluation

Calculates relative optical luminance in real-time, verifying compliance against Level AA (4.5:1) and AAA (7.0:1) thresholds.

3

Simulate Color Blindness & Preview Components

Inspect live rendering across body text, headings, buttons, and form inputs, along with Protanopia, Deuteranopia, and Tritanopia simulations.

4

One-Click Auto-Fix & Code Export

Automatically adjust lightness to pass AA or AAA with a single click, then export production-ready CSS snippets or markdown reports.

Understanding WCAG 2.1 & 2.2 Color Contrast Requirements

The Web Content Accessibility Guidelines (WCAG) define verifiable standards to ensure that text and visual information remain clearly legible to people with moderately low vision, color perception deficiencies, or those viewing digital screens in challenging lighting conditions (such as direct sunlight or low brightness).

Level AA Minimum Standards (Mandatory)

Normal Text (<18pt / 24px): Requires a minimum contrast ratio of 4.5:1.
Large Text (18pt+ / 14pt+ bold): Requires a minimum contrast ratio of 3.0:1.
Non-Text Elements (Criteria 1.4.11): UI controls, form borders, active states, and icons require a 3.0:1 minimum against adjacent surfaces.

Level AAA Enhanced Standards (Recommended)

Normal Text: Requires a minimum contrast ratio of 7.0:1.
Large Text: Requires a minimum contrast ratio of 4.5:1.
Designed for elderly readers, high-density scientific interfaces, legal documentation, and accessibility-first government portals.

The Mathematical Relative Luminance Formula

Contrast ratio is mathematically determined by the relative luminance of both colors, defined on a scale from 0.0 (pure black) to 1.0 (pure white). The sRGB gamma curve is linearized before applying the spectral sensitivity weights:

L = 0.2126 * R_lin + 0.7152 * G_lin + 0.0722 * B_lin
Ratio = (L1 + 0.05) / (L2 + 0.05), where L1 ≥ L2

The constant 0.05 offset accounts for ambient flare on modern display panels. Consequently, the minimum possible ratio is 1:1 (identical colors) and the absolute maximum is 21:1 (pure white on pure black).

Explore More Design & Web Utilities

Explore complementary utilities designed to speed up your workflow.

View All Tools
design

Color Format Converter

Convert color codes seamlessly between HEX, RGB, HSL, HSV, CMYK, and OKLCH with color harmonies.

Open tool
text

Word & Character Counter

Analyze word density, sentence count, reading time, and reading level for accessible content.

Open tool
qr-codes

QR Code Generator

Design accessible, high-contrast QR codes with custom styling and vector SVG export.

Open tool