CSS Tool

CSS Gradient Generator

Build linear and radial gradients visually. Add colour stops, adjust positions, and copy the CSS with one click.

Gradient Type
Angle
135°
Colour Stops
CSS Output

Build a CSS gradient without writing it by hand

This gradient generator turns visual choices into valid CSS. Choose a linear or radial gradient, select your colours, move each stop to control where transitions happen, and copy the finished background declaration straight into your stylesheet.

For linear gradients, the angle controls the direction of the blend. A value of 0° runs bottom to top, 90° runs left to right, and 180° reverses the vertical direction. Radial gradients spread outward from the centre and do not use an angle.

Linear gradients

Best for directional backgrounds, buttons, hero sections and subtle overlays. Adjust the angle from 0° to 360°.

Radial gradients

Useful for glows, spotlight effects and soft colour transitions that radiate from the centre.

Colour stops

Add up to six stops and position each one from 0% to 100% to control where colours appear and blend.

Ready-to-use CSS

The generated declaration updates instantly, so you can copy it directly into a class, component or inline style.

Three common gradient styles

Warm diagonal#FF4D00 → #FFB800
Multi-stop blend3 colour stops
Radial glowcentre → edge

Two stops are often enough for a clean interface gradient. Additional stops give you more control for richer backgrounds, but too many strong colours can make text harder to read. If the gradient sits behind text or a button, run the finished colours through the contrast checker.

How to make gradients look intentional

  1. Start with related colours. Colours that share similar saturation and brightness usually blend more naturally.
  2. Move the stops, not just the colours. Positioning a stop at 30% or 70% can change the visual balance more than adding another colour.
  3. Use subtle gradients for UI surfaces. Small shifts in lightness often work better than highly saturated rainbow effects.
  4. Check readability. A gradient can pass contrast in one area and fail in another, so test the darkest and lightest parts behind important text.

If you need colours before building the gradient, try the random palette generator for inspiration or create a more systematic set with the brand colour palette generator.

CSS gradient generator FAQs

What is the difference between a linear and radial gradient?

A linear gradient blends colours along a straight line at a chosen angle. A radial gradient blends outward from a central point in a circular shape.

How many colour stops can I add?

This tool supports up to six colour stops. Each stop has its own colour and position between 0% and 100%.

Can I use the generated gradient in normal CSS?

Yes. Copy the generated background: declaration and paste it into any CSS selector that accepts a background image.

Do CSS gradients need image files?

No. Linear and radial gradients are rendered by the browser from CSS, so there is no separate image asset to download or host.