Free Technical tool

Free CSS Gradient Generator

A CSS gradient blends two or more colours smoothly, replacing heavy background images with a few lines of code. Pick your colours and direction and this generator previews the result live and writes the exact background CSS to paste into your stylesheet — including multiple colour stops for richer blends.

Free · 2 free tries a day, unlimited on paid plans · Updated · By the SEO Portals team

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

  1. Pick a gradient type and direction.
  2. Choose your start and end colours.
  3. Add a middle stop for a richer blend.
  4. 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.

Check every page, not just one

Run a full-site audit free and get every issue ranked by impact.

Audit my whole site free