Skip to main content
Back
contrast-check
Community Contributions

contrast-check

Overview

Text that fails contrast is one of the most common accessibility defects. contrast-check computes the WCAG 2.1 ratio between a foreground and background color, shows pass/fail for every level, previews real sample text, and suggests the nearest accessible color when a combination fails.

The Challenge

Low-contrast text passes a quick visual review but fails real users and accessibility audits — and the fix is guesswork without the math.

Our Solution

A zero-dependency page that does the sRGB-luminance math correctly, shows the full AA/AAA matrix, and steps a failing color to a passing one you can apply in one click.

Results

Ship accessible color choices with confidence — shareable via URL, nothing to install.

Technologies Used

HTMLVanilla JSAccessibilityWCAG

Project Details

Category

Community Contributions

Share this project