ColorDetector

Gradient Generator

Build linear and radial CSS gradients with live preview and copy-ready code.

Ad

About the Gradient Generator

Build linear and radial CSS gradients with live preview and copy-ready code. Every value is computed locally with vanilla JavaScript — there is no server round-trip, no sign-up and no limit on how many times you use it.

01

How to use

Step 1

Pick two colors

Choose the start and end colors of your gradient.

Step 2

Choose the type

Switch between linear and radial styles.

Step 3

Set the angle

Use the angle slider to aim a linear gradient.

Step 4

Copy the CSS

Grab the ready-to-paste background property.

02

Benefits

Production-ready CSS

Copy a valid background value straight into your stylesheet.

See it live

The preview updates as you change colors, type and angle.

No guesswork

Get the exact syntax without memorizing it.

03

Features & supported formats

Features

  • Linear and radial modes
  • Adjustable angle
  • Two color stops
  • Live gradient preview
  • Copy-ready CSS output

Supported formats

CSS gradientHEX
04

Frequently asked questions

Can I use these gradients in CSS?

Yes. Copy the generated background property and paste it directly into your stylesheet.

What is the difference between linear and radial?

Linear gradients blend along a straight line at a set angle; radial gradients blend outward from a centre point.

How do I change the direction?

Use the angle slider for linear gradients; 0 degrees points up and values increase clockwise.

Can I add more color stops?

This generator uses two stops for clean two-color blends; you can extend the copied CSS by hand for more.

Do gradients affect performance?

CSS gradients are rendered by the browser and are very efficient, far lighter than gradient images.