Skip to content

Design tool

CSS Gradient Generator

Pick the colors, choose linear or radial, and copy the CSS. A middle color is optional.

Stays in your browser Processed in your browser. The text is not sent to our servers.

Live Updates as you change the fields — no need to press a button.

Gradient options

Leave the middle empty for two colors. 90 runs left to right. A radial gradient can be a circle or an ellipse.

Result updates here as you change the fields.

How to build a CSS gradient

  1. Set the start and end colors. Add a middle color only if you want three stops.
  2. Choose linear and an angle, or radial and a circle or an ellipse.
  3. Check the preview and copy the CSS.

The output is a background property. An empty middle color keeps two stops. 90 runs left to right. A radial ellipse follows the box, and a circle stays round.

Back to Design tools

Frequently asked questions

Which color format should I use?

Hex colors such as #4f46c7. Three-digit hex is expanded.

Is the CSS uploaded?

No. The preview and the property are created in your browser.

More questions on the FAQ page · Browse guides

Keep working without leaving the site.