CSS gradient generator
Build linear, radial and conic CSS gradients visually. Pick colors, adjust angles and stops, then copy production-ready CSS. Free, no sign-up.
Build linear, radial and conic CSS gradients visually — pick colors, set angles and drag color stops — then copy production-ready CSS. The code updates live.
Switch gradient types and stop colors without touching the output; the generated CSS is standard-compliant and ready to paste into any stylesheet.
The most common professional use is the scrim: a transparent-to-near-black linear gradient laid over a photo so white headline text stays legible. Build it with two stops of the same hue (transparent → ~80% black) rather than two different colors — it reads as lighting, not decoration, and never fights the page's palette.
Click the bar to add a stop
background: linear-gradient(90deg, #ff006e 0%, #3a86ff 50%, #8338ec 100%);Want the full design system from a color? Open the color palette generator to create accessible palettes, semantic tokens, light and dark themes, and production-ready CSS — all from a single color.
How to use this tool
- Pick a gradient type: linear, radial or conic.
- Click the gradient bar to add color stops, then drag or adjust each one.
- Copy the generated CSS and paste it into your stylesheet.
Frequently asked questions
- What gradient types are supported?
- Linear (any angle), radial (circle), and conic (sweep from a center point). Switch between them with one click and the CSS updates live.
- Can I add more color stops?
- Yes — click anywhere on the gradient bar to add a new stop, drag to reposition, and click a stop to change its color. The generated CSS reflects every change instantly.
- Is the output production-ready?
- Yes — the CSS is clean and standard-compliant. For older browsers that do not support CSS gradients, declare a plain-color background before the gradient rule as a fallback.
- Can I put text over my gradient?
- Only if the text zone stays contrast-safe: keep body copy off gradients entirely, and for headlines over an image-plus-gradient scrim, check the lightest point of the text area against your text color in the contrast checker — gradients fail WCAG at their lightest stop first.
Related tools
Related guides
Accessibility · 29 Oct 2026
Accessible gradients: contrast rules for real interfaces
Gradients break every contrast shortcut because their background is a range, not a color. Test the worst stop, use scrims, and keep controls honest.
Short lessons · 17 Aug 2026
Gradients that don't look cheap
Most gradients look muddy because both stops are too similar. Here's what actually makes a gradient read as rich.
Tutorials · 2 Nov 2026
Design a hero gradient people remember
Lightness travel, safe text zone, clean CSS: heroes that glow.
CSS gradient generator runs entirely in your browser — nothing you enter is sent to a server.