Output will appear here
Click in the output to select all text
Output will appear here
Click in the output to select all text
Check WCAG contrast ratio between text and background colors for accessibility compliance.
Comprehensive WCAG 2.1 AA & AAA compliance test for normal text, large text, and UI components.
Simulate how colors appear to Deuteranopia, Protanopia, Tritanopia, and Achromatopsia vision.
Visual color picker showing real-time HEX, RGB, HSL, HSV, and CMYK formats.
Calculate Euclidean and CIE76 Delta E perceptual color distance between two colors.
Generate darker shades of any base color with configurable steps.
This accessible color finder takes a background color and finds the closest text color option - black, white, or an adjusted version of your original hue - that meets WCAG AA contrast requirements, so you don't have to manually tweak values until a contrast checker finally passes. It's built for designers and developers who have a brand or background color locked in but need a compliant text color to pair with it, especially when the obvious choice doesn't quite clear the 4.5:1 or 3:1 thresholds. Enter your background color and the tool evaluates black and white as candidates first, then, if needed, calculates an adjusted hue-preserving variant that passes the required ratio while staying as visually close to your original intent as possible. All the analysis and calculation happen locally in your browser, so your brand colors and design decisions are never uploaded anywhere. The tool applies the exact WCAG relative luminance and contrast ratio formulas, so any suggested color is genuinely compliant, not just visually close enough to guess. Enter your background color below to find an accessible text color.
It first checks whether pure black or white meets the required contrast ratio against your background, then, if neither works well, adjusts the lightness of a hue-preserving variant until it passes WCAG AA.
Black or white usually passes contrast easily, but sometimes a brand-aligned, hue-matched color is preferred for design consistency, which is where the adjusted-hue suggestion helps.
By default it targets WCAG AA thresholds: 4.5:1 for normal text and 3:1 for large text, the most commonly required accessibility standard.
For a stricter check, take the suggested color and verify it against the AAA thresholds (7:1 normal, 4.5:1 large) in the dedicated WCAG contrast checker.
It's calculated to stay as close as possible to your original hue while meeting the contrast requirement, though very light or vibrant backgrounds may require a bigger adjustment to pass.
No, it solves the specific problem of finding compliant text color for one background; a full audit should also check UI component contrast, keyboard access, and other WCAG criteria.
WCAG Contrast Ratios Explained: AA vs AAA
What the WCAG contrast ratio numbers mean, how 4.5:1 and 7:1 were chosen, when large text qualifies for 3:1, and how to decide whether you need AA or AAA.
How to Fix Failing Color Contrast on Your Site
A step-by-step process to fix color contrast failures without wrecking your brand palette: triage by impact, shift lightness not hue, and repair tokens at the source.
Designing for Color Blindness: A Practical Guide
How deuteranopia, protanopia and tritanopia change what users see, which color pairs collapse, and how to build a colorblind-safe palette for charts, status and maps.