Home › Toolkit › Developer › CSS Gradient Generator

🌈 CSS Gradient Generator

Gradients are easy to imagine and fiddly to type. Build yours here: stack colour stops, choose direction or shape, watch the preview, and copy production-ready CSS.

About this tool

A CSS gradient is a small programme: a direction, and a list of colours pinned to positions along it. This generator gives that programme a visual editor — colour stops you add and arrange, an angle dial for linear gradients, shape and position for radial ones — and a live preview big enough to judge. When it looks right, the exact background declaration is written out for copying into your stylesheet.

The craft is in the stops. Two colours at 0% and 100% give the classic blend; a third stop in the middle adds a glow or a band; two stops at the same position create a hard edge — the trick behind striped backgrounds and split designs. Positions are optional per stop: leave them to the browser's even spacing, or pin them when the design needs the colour change at an exact point.

How to use it

  1. Choose linear or radial; set the angle, or the shape and position.
  2. Add colour stops and set each colour and position.
  3. Copy the generated CSS from the result panel.

Good to know

  • Subtle gradients age better: two neighbouring hues at low contrast look designed; rainbows look like 2009.
  • For a hard two-tone split, set two stops to the same position (e.g. both 50%).
  • Always set a solid background-color fallback under a gradient for ancient browsers — use the first stop's colour.

Frequently asked questions

Can I make a gradient with more than two colours?

Yes — add as many stops as the design needs; each becomes one line in the CSS.

Why does my gradient look banded?

Very gradual blends across similar colours can band on some displays. A touch more contrast between stops, or a mid stop, usually smooths it.

Is the CSS ready for production?

Yes — it is a standard background declaration that works in every modern browser.

More Developer tools

Making videos too? Try our YouTube SEO Checker, or browse the full Toolkit and the free YouTube tools.