No Login Data Private Local Save

Color Contrast Checker - Online WCAG Accessibility Validator

17
0
0
0

Color Contrast Checker

Validate your color combinations against WCAG 2.1 accessibility standards

Text Color (Foreground) FG
Text
#
RGB: 51, 51, 51 HSL: 0°, 0%, 20%
Background Color BG
Background
#
RGB: 255, 255, 255 HSL: 0°, 0%, 100%
Normal Text (16px) — WCAG Reference

The quick brown fox jumps over the lazy dog. Accessibility ensures that everyone, regardless of ability, can perceive and interact with digital content effectively.

Large Text (24px) — ≥18pt for WCAG

Good contrast makes text readable for all users.

Bold Large Text (19px Bold) — ≥14pt Bold for WCAG

Inclusive design benefits everyone.

12.63
: 1 contrast ratio
AA Normal AA Large AAA Normal AAA Large
Preset Color Combinations
AA Standard

Normal text: 4.5:1 minimum
Large text (≥18pt / 24px, or ≥14pt bold): 3:1 minimum

AAA Standard (Enhanced)

Normal text: 7:1 minimum
Large text (≥18pt / 24px, or ≥14pt bold): 4.5:1 minimum

Quick Tip

When in doubt, darken the text or lighten the background. Pure black (#000) on pure white (#FFF) yields the maximum 21:1 ratio.

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) to 21:1 (pure black on pure white). Adequate contrast is essential for users with visual impairments, color blindness, or those viewing screens in bright sunlight. WCAG 2.1 Level AA requires at least 4.5:1 for normal text and 3:1 for large text to ensure readability for approximately 80% of users with visual impairments.
The contrast ratio follows the sRGB relative luminance formula defined by W3C. First, each color channel (R, G, B) is linearized from sRGB space: if a channel value ≤ 0.04045, it's divided by 12.92; otherwise, it's raised to the power of 2.4 after applying ((value + 0.055) / 1.055). Then relative luminance L = 0.2126×R + 0.7152×G + 0.0722×B. Finally, contrast ratio = (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color. This accounts for human perception where green appears brightest.
WCAG defines large text as text that is at least 18 point (approximately 24px) in regular weight, or at least 14 point (approximately 18.67px) in bold weight (700+). Large text has a lower contrast requirement because thicker and larger letterforms are inherently easier to read. For AA compliance, large text needs only 3:1 contrast (vs 4.5:1 for normal text), and for AAA, it needs 4.5:1 (vs 7:1 for normal text).
Level AA is the generally accepted standard for web accessibility and is often legally required (e.g., under ADA, Section 508, or EN 301 549). It requires a 4.5:1 contrast ratio for normal text and 3:1 for large text. Level AAA is the highest standard, requiring 7:1 for normal text and 4.5:1 for large text. AAA is difficult to achieve across entire websites and is typically reserved for enhanced accessibility features or specialized services for users with significant visual impairments.
The WCAG contrast ratio formula is based on luminance contrast (brightness difference), not hue or saturation. This means it inherently helps users with all forms of color blindness—including deuteranopia (green-blind), protanopia (red-blind), and tritanopia (blue-blind)—because it ensures sufficient brightness difference between text and background. However, color contrast alone doesn't guarantee accessibility; avoid relying solely on color to convey information. Always pair color cues with text labels, icons, or patterns.
To improve contrast: (1) Darken your text color or lighten the background significantly. (2) Increase font weight—bolder text is easier to read at lower contrast levels. (3) Increase font size to qualify as "large text" under WCAG. (4) Use tools like this checker iteratively while adjusting your design. (5) For brand colors that inherently have low contrast, consider using darker variants for text and lighter tints for backgrounds. (6) Avoid placing text over complex images or gradients without sufficient contrast.
Yes, WCAG 2.1 specifies several exemptions where contrast requirements don't apply: Logos and brand names (incidental text), inactive UI components (disabled buttons), decorative text that conveys no information, text within images that is purely decorative, and placeholder text in form inputs (though some jurisdictions may still recommend contrast for placeholders). However, any text essential for understanding or interacting with content must meet the requirements.
Absolutely! The WCAG contrast standards apply to all digital interfaces, including mobile apps (iOS, Android), web apps, kiosks, and digital signage. In fact, mobile accessibility is especially critical because users often view screens in challenging lighting conditions like direct sunlight. Both Apple's Human Interface Guidelines and Google's Material Design reference WCAG contrast ratios. Use this tool during your design process to validate text/background pairs for buttons, labels, body text, and any other UI elements.