
CSS gradient generator
Linear, radial and conic gradients with as many colour stops as you like. See it on a real card and button, check text contrast, copy the CSS.
Runs in your browser. Nothing you make is uploaded.
How to use it
- Pick a type: linear (a straight fade), radial (from a point outwards) or conic (around a point, like a colour wheel).
- Add, move or remove colour stops. Drag the angle or the centre.
- Watch the preview and the text-contrast score.
- Press Copy CSS and paste it into your stylesheet.
Every value is written in standard CSS that works in all current browsers (Chrome, Edge, Firefox, Safari).
Questions
Which browsers support conic gradients?
All current ones: Chrome, Edge, Firefox and Safari have supported conic-gradient() since 2020 or earlier.
Why does my gradient look banded?
Long fades between close colours can show steps on some screens. Add a middle stop, or add a little noise with an overlay picture.
What does the contrast score mean?
It's the WCAG contrast ratio between your text colour and the darkest or lightest part of the gradient, whichever is worse. 4.5 or more is comfortable for normal text; 3 or more for big headings.
Can I use a gradient as a text colour?
Yes: set the gradient as the background, then add -webkit-background-clip: text; background-clip: text; color: transparent;. Tick “Gradient text” to get that CSS.
