Linear, radial or conic?
Linear gradients run in a straight line — the workhorse for hero sections, buttons and overlays. Radial gradients bloom from a centre point, good for glows and vignettes. Conic gradients sweep around a point like a pie chart. All three are resolution-independent, weigh almost nothing next to an image, and scale to any screen — one reason modern design systems prefer them.
How to use the CSS Gradient Generator
- Pick a gradient type and direction.
- Choose your start and end colours.
- Add a middle stop for a richer blend.
- Copy the CSS and paste it into your stylesheet.
Why it matters
- Live preview as you pick colours.
- Production-ready CSS, no images needed.
- Multiple stops for smooth, rich blends.
- Gradients weigh bytes; background photos weigh kilobytes.
Key facts
- Outputs standard background gradient CSS.
- Works in every modern browser without prefixes.
- Colour stops can be positioned by percentage.
- You get 2 free uses a day; paid plans are unlimited.
CSS Gradient Generator FAQ
Do CSS gradients affect page speed?
Barely — a gradient is a few dozen bytes of CSS, while the background image it replaces is often 100 KB or more. Very large, complex gradients can cost a little rendering time on low-end phones, but for typical hero sections they are a clear win.
How do I use a gradient over a photo?
Layer it: background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.25)), url(photo.jpg). The translucent dark gradient keeps headline text readable over busy images — a classic hero pattern.
Why does my gradient look banded?
Banding appears in subtle, dark gradients because screens have limited steps between similar colours. Adding a middle stop, a touch of contrast, or a faint noise texture hides it.
Can text sit safely on a gradient?
Yes, if contrast holds across the whole blend. Check the lightest part of the gradient against your text colour with our Colour Contrast Checker.