Skip to content
Engyna

Gradient Generator

Design linear, radial, conic and mesh gradients and copy the CSS.

How to use the Gradient Generator

  1. 1Choose linear, radial, conic or mesh, or start from a preset.
  2. 2Drag the color stops and fine-tune angle, position and interpolation.
  3. 3Copy the CSS or download the gradient as a PNG wallpaper.

About Gradient Generator

The Gradient Generator designs CSS gradients visually. Choose linear, radial, conic or mesh, start from a preset or a random gradient, and drag up to eight color stops along the bar. Linear gradients take an angle, with quick buttons for common directions, radial gradients a circle or ellipse shape and a center point, and conic gradients a start angle and a center. Mesh mode layers up to six soft color blobs over a base color, each with its own position and size.

Interpolation can run in OKLCH, OKLab or sRGB. The Oklab-based spaces keep the middle of a gradient vivid where sRGB can turn gray between distant hues, and the CSS then starts with an sRGB fallback line for browsers without color-space interpolation. Copy the result as CSS or as a Tailwind arbitrary-value class, flip the stops with Reverse, or download the gradient as a PNG wallpaper in Full HD, QHD, square or story format.

Web designers use the Gradient Generator for hero backgrounds, buttons and cards, developers to get the gradient syntax right without trial and error, and content creators to make background images for slides, social posts and phone wallpapers.

Frequently asked questions

How do I make a gradient in CSS?

Use a gradient function as the background, for example background: linear-gradient(90deg, #ff7a18, #af002d). The angle sets the direction, and each color can take a position in percent, such as #ff7a18 20%.

What is the difference between linear, radial and conic gradients?

A linear gradient changes color along a straight line, a radial gradient spreads outward from a center point in a circle or ellipse, and a conic gradient sweeps the colors around a center like the hand of a clock, which suits pie charts and color wheels.

Why does my gradient look gray in the middle?

In the sRGB color space, the colors halfway between two distant hues, such as blue and yellow, mix toward gray. Interpolating in OKLCH or OKLab, written as linear-gradient(in oklch, …), keeps the middle colorful.

What is a mesh gradient?

A smooth blend of several colors spread across an area instead of along one line. In CSS it is usually approximated by layering radial gradients that fade to transparent over a base color, which is how the mesh mode here works.