The contrast check uses the worst case across the gradient: the minimum of all sampled points. Make sure heading (large text, 3:1), body text (4.5:1) and button text pass at least AA.
Accessible CSS gradient generator with WCAG contrast checker
Create beautiful CSS gradients that are actually readable. The accessible gradient generator combines a linear gradient (two colors and angle), a box shadow and a live WCAG 2.1 contrast check – so your design passes AA and AAA contrast standards.
How does WCAG contrast work on a gradient?
WCAG 2.1 measures contrast as a ratio between text color and background color. On a gradient the background changes, so this tool checks the text color against the worst case across the gradient and warns you immediately if AA or AAA is not reached.
CSS text gradient and mesh gradient
Besides the classic linear gradient you can create a CSS text gradient (gradient clipped to the heading via background-clip: text) and a mesh gradient with layered radial gradients – directly copyable as CSS or Tailwind classes.
Tailwind gradient generator output
Switch the output to Tailwind and copy ready-to-use classes like bg-gradient-to-br from-[#2563eb] to-[#7c3aed] and arbitrary shadow values directly into your markup.