4.5:1 minimum
Body text under 18pt (or under 14pt bold) requires a contrast ratio of at least 4.5:1.
4.5:1
Test text readability against any CSS gradient — linear or radial. Get WCAG AA/AAA pass/fail results at every point along the gradient.
PREVIEW
background: linear-gradient(90deg, #6366F1, #8B5CF6, #EC4899);
Gradient Type
Direction
Gradient Stops
Presets
Text
Check text readability against CSS gradients. Unlike flat-color contrast checkers, this tool samples the entire gradient to find the worst-case contrast ratio — so you know your text is readable at every point, not just at the color stops.
A Gradient Contrast Checker measures how readable text is when placed on top of a CSS gradient. Standard contrast checkers only compare two solid colors. But gradients change color continuously — so text might be readable at one end and unreadable at the other.
This tool samples the gradient at multiple positions between its color stops, calculates the WCAG contrast ratio for each sample, and reports:
Body text under 18pt (or under 14pt bold) requires a contrast ratio of at least 4.5:1.
4.5:1
Large text — 18pt+ or 14pt+ bold — requires at least 3:1 contrast against its background.
3:1
AAA-level body text should reach 7:1 contrast for the strongest readability guarantee.
7:1
Large text at AAA level requires 4.5:1 contrast against its background.
4.5:1
For the official WCAG contrast requirements, see the WCAG 2.1 contrast minimum.
The tool renders your CSS gradient, samples the color at 12 evenly-spaced positions along its length (from 0% to 100%), and computes the WCAG contrast ratio between each sampled color and your text color.
Because the gradient is sampled from actual rendered pixels, the result accounts for every subtlety — interpolated colors between stops, radial falloff, and mixed-stop positions.
L = 0.2126·R + 0.7152·G + 0.0722·B
(with R, G, B linearized from sRGB)
Contrast = (L_light + 0.05) / (L_dark + 0.05)
Where L_light is the lighter of the two
and L_dark is the darker.
Text over gradient backgrounds must be readable at every point.
CTA buttons often have gradient fills with white labels.
Gradient card headers with text overlays.
Ensure data labels remain readable across chart gradients.
Test gradient contrast in both themes.
Verify new brand gradients meet accessibility standards.
It renders your CSS gradient to a canvas, samples 12 evenly-spaced points along the gradient, and calculates the WCAG contrast ratio between each sampled color and your text color.
A color contrast checker compares two solid colors. A gradient contrast checker samples many points along a gradient and reports the worst case — because a gradient's contrast varies at every position.
For normal text: AA needs 4.5:1, AAA needs 7:1. For large text (18pt+ or 14pt+ bold): AA needs 3:1, AAA needs 4.5:1.
Yes. The tool supports both linear and radial gradients, and samples colors across the visible range in both cases.
Text must be readable everywhere it appears. A gradient that passes at 90% of its length but fails at one edge still creates a real accessibility failure for users reading at that edge.
Yes. The gradient is rendered to a hidden canvas, and the color at each sample position is read directly from the canvas pixels — so interpolated colors between stops are accounted for accurately.
You test one text color at a time, but changing the text color updates results instantly so you can compare options quickly.
No. All processing happens locally in your browser. Nothing is uploaded.
Yes. The Gradient Contrast Checker is completely free.
Gradients are beautiful — but only if the text on top of them is readable. This tool gives you the numbers you need to design gradients that pass WCAG AA and AAA at every point.