COLOR & DESIGNE-E-A-T
🎨

Color Contrast Checker Online

Calculate color contrast ratios and verify WCAG 2.1 AA & AAA accessibility compliance.

⚡Live Result
17.85 : 1 (WCAG AA)Contrast Ratio
17.85 : 1Passes WCAG AAA (Enhanced)PASS ✅ (Required ≥ 4.5:1)
1

Input Parameters

Quick Presets
Or customize parameters below
2

Live Result

17.85 : 1 (WCAG AA)
Contrast Ratio
Composition Breakdown+85.01%
0%50%100%
Contrast Score:17.85 : 1
3

Details

7 metrics
Color Contrast Ratio
17.85 : 1
Overall WCAG Compliance
Passes WCAG AAAEnhanced
WCAG AA Normal Text (≥ 4.5:1)
PASS ✅
Required ≥ 4.5:1
WCAG AAA Normal Text (≥ 7.0:1)
PASS ✅
Required ≥ 7.0:1
WCAG AA Large Text (≥ 3.0:1)
PASS ✅
Required ≥ 3.0:1
WCAG AAA Large Text (≥ 4.5:1)
PASS ✅
Required ≥ 4.5:1
UI Components & Icons (≥ 3.0:1)
PASS ✅Required ≥ 3.0:1 for icons/buttons
⚡
Live Result
17.85 : 1 (WCAG AA)Contrast Ratio

Quick Answer & Understanding Your Result

Source: W3C Web Content Accessibility Guidelines (WCAG) 2.1

A Color Contrast Checker calculates the relative luminance contrast ratio between foreground text and background colors (L1 / L2) to verify accessibility compliance against W3C WCAG 2.1 Level AA and AAA guidelines.

W3C WCAG 2.1 Contrast Standards

  • Level AA (Regular Text < 18pt): Requires a minimum contrast ratio of 4.5:1.
  • Level AA (Large Text >= 18pt / 14pt bold): Requires a minimum contrast ratio of 3.0:1.
  • Level AAA (Enhanced / High Contrast): Requires 7.0:1 for regular text and 4.5:1 for large text.
  • UI Components & Graphical Objects: Requires a minimum contrast ratio of 3.0:1.

Mathematical Contrast Formula

Contrast Ratio = (L1 + 0.05) / (L2 + 0.05) Where L1 is the relative luminance of the lighter color and L2 is the relative luminance of the darker color (0 <= L <= 1).

Pick your text and background colors above to inspect live contrast scores and WCAG compliance badges.

Formula & Calculation Logic

Mathematical Formula
Mathematical Formula
L
= 0.2126 × R_lin + 0.7152 × G_lin + 0.0722 × B_lin
Contrast Ratio
= (L1 + 0.05) / (L2 + 0.05)

Where R_lin, G_lin, B_lin represent sRGB values linearized via gamma correction.

Step-by-Step Guide

1

Choose Foreground Color

Select or input HEX/RGB for text color.

2

Choose Background Color

Select or input HEX/RGB for background color.

3

Review Compliance Score

Inspect calculated ratio (e.g. 7.2:1) and AA/AAA Pass/Fail status.

Worked Examples Table

ExampleInput ValuesCalculated ResultExplanation
Black Text (#000000) on White Background (#FFFFFF)
Text Color: #000000, Bg Color: #FFFFFF
Contrast Ratio: 21.0:1 (AAA Pass)
Maximum possible contrast ratio, passes all WCAG AA and AAA thresholds.
Dark Mode Neon Sky (#38BDF8 on #0F172A, 9.4:1)
Text Color: #38BDF8, Bg Color: #0F172A
Accurate Operational Result
Provides instant quantitative evaluation for comparative practical analysis.

Frequently Asked Questions

Evidence-Based Methodology & Authoritative References

References & Methodology

W3C Web Content Accessibility Guidelines (WCAG) 2.1

View Reference
Calculation Standard & Formulation

Standard: ISO / W3C / IETF Authoritative Domain Standard

Formula: L = 0.2126 × R_lin + 0.7152 × G_lin + 0.0722 × B_lin

Last Reviewed: August 21, 2026

Authoritative Sources & Peer Review

Primary Source: W3C Web Content Accessibility Guidelines (WCAG) 2.1

Reference Document: Domain Standards & Specifications

Computation Privacy: 100% client-side 0ms computation, zero data retention

Application Scope & Disclaimer

Calculated results are modeled based on standard scientific and mathematical formulas. Please verify with domain-specific technical documentation for specialized applications.

TOPIC CLUSTER & KNOWLEDGE MESH

Explore Related Tools, Methodologies & Guides

Interconnected domain knowledge, verified computational engines, and peer-reviewed research.

Explore All Color & Design Tools

Calculated results are modeled based on standard scientific and mathematical formulas. Please verify with domain-specific technical documentation for specialized applications.

Explore All Color & Design Tools