CSS Mesh Gradient Generator

Build multi-point mesh gradients with pure CSS and copy the code.

Free CSS mesh gradient generator. Place 3 to 6 colour points, drag their positions, randomize palettes, and copy a pure-CSS background made of layered radial gradients — no images required. Live preview runs in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is a mesh gradient in CSS?

A mesh gradient is the smooth blending of several colour points across a surface. In CSS it is approximated by stacking multiple radial gradients — one per colour point — over a solid base colour, which is exactly what this tool generates.

Mesh gradients — those soft, multi-colour “aurora” backgrounds — can be built entirely in pure CSS by layering several radial gradients over a base colour. This generator lets you place and move colour points, then copies the exact CSS with no image files involved.

How it works

Each colour point becomes one radial gradient that fades to transparent, and they are stacked in a single background-image:

background-color: #1b212d;
background-image:
    radial-gradient(at 12% 18%, #ff6b9d 0px, transparent 55%),
    radial-gradient(at 82% 22%, #6d8bff 0px, transparent 55%),
    radial-gradient(at 28% 82%, #a274ff 0px, transparent 55%);

The base colour shows through the transparent gaps, so choosing a dark or light base changes the whole mood of the mesh.

Tips

  • Spread the points toward the corners for a full-bleed blend; cluster them for a soft spotlight.
  • Use a randomize pass to explore palettes quickly, then fine-tune the two or three points you like.
  • Because it is pure CSS, the gradient stays crisp at any resolution and adds zero extra HTTP requests — ideal for hero sections and cards.

The live preview and all generation run in your browser.