No Login Data Private Local Save

Text Contrast Validator - Online WCAG AAA Checker

11
0
0
0
#
RGB: 26, 26, 46
#
RGB: 255, 255, 255
Quick Presets
Large Text / Heading

The quick brown fox jumps over the lazy dog.

Normal Text / Body

Accessibility is not a feature — it's a fundamental right. Good contrast makes content readable for everyone, including users with visual impairments.

17.83 :1
Excellent contrast
3:1
4.5:1
7:1
WCAG 2.1 Contrast Requirements
Level Normal Text Large Text (≥24px / ≥18.67px bold)
AA ≥ 4.5 : 1 ≥ 3 : 1
AAA ≥ 7 : 1 ≥ 4.5 : 1
Frequently Asked Questions

The WCAG (Web Content Accessibility Guidelines) contrast ratio measures the luminance difference between text and its background. It ranges from 1:1 (identical colors, unreadable) to 21:1 (pure black on pure white). A higher ratio ensures that text is legible for users with visual impairments, color blindness, or those viewing content in challenging lighting conditions. It's a cornerstone of digital accessibility compliance under standards like Section 508 and EN 301 549.

AA Level (minimum compliance): Normal text needs a contrast ratio of at least 4.5:1, while large text (≥24px or ≥18.67px bold) needs 3:1. This is the generally accepted standard for most websites.

AAA Level (enhanced compliance): Normal text requires 7:1, and large text needs 4.5:1. AAA is harder to achieve but provides the best readability. It's often required for government websites, healthcare platforms, and sites serving users with significant visual impairments.

The calculation follows the WCAG 2.1 formula: First, sRGB color values are converted to linear RGB using gamma correction. Then, relative luminance (L) is computed as: L = 0.2126 × R + 0.7152 × G + 0.0722 × B. The contrast ratio is: (L_light + 0.05) / (L_dark + 0.05). This nonlinear formula accounts for human visual perception, where the same numeric difference has varying perceptual impact at different brightness levels. Our tool performs this calculation in real-time as you adjust colors.

WCAG defines large text as: at least 18 point (≈24px) for regular weight text, or at least 14 point (≈18.67px) for bold text (font-weight ≥700). Large text has lower contrast requirements because thicker strokes and larger glyphs are inherently easier to perceive. When designing, always consider your actual rendered font size and weight — not just the CSS declaration, as rendering can vary across devices.

Over 2.2 billion people worldwide have some form of vision impairment. Low contrast text can be unreadable for users with low vision, color blindness (affecting ~8% of men), or presbyopia (age-related vision decline). Beyond permanent conditions, poor contrast also affects users in bright sunlight, on dimmed screens, or with aging displays. Good contrast isn't just about compliance — it improves readability, reduces eye strain, and enhances the overall user experience for everyone.

There are several strategies: 1) Darken the text or lighten the background (or vice versa) while preserving the hue. 2) Shift hues to create more perceptual separation — e.g., blue text on a slightly darker blue background may have low contrast even if numerically different. 3) Increase font weight or size if feasible, which lowers the WCAG threshold. 4) Add a subtle text-shadow or outline for critical UI elements. Our tool's suggestion feature automatically computes the minimal adjustment needed to reach your target WCAG level.

While this tool is optimized for text-background contrast, the same WCAG contrast ratios apply to non-text UI components (buttons, icons, form borders, focus indicators) under WCAG 2.1 Success Criterion 1.4.11. These elements need a minimum 3:1 contrast ratio against adjacent colors. You can use this tool to check those color pairs as well — simply input the UI element color as "text" and the surrounding surface as "background."