Mesh Gradient Generator

A mesh gradient blends several colour points across a surface instead of running along one line. On the web you can fake it with plain CSS by stacking one radial-gradient per point over a base colour. Drag the points below, set each colour and reach, then copy the CSS or save a PNG.

Which gradient tool fits the job
You wantUseOutput
A still, soft blob background with no scriptThis mesh generatorCSS or PNG
A slowly moving backgroundShader gradient generatorWebGL component
A straight, radial or conic two-to-five stop blendCSS gradient generatorOne gradient line

Updated

Each point here becomes its own radial gradient, painted on top of a base colour. Because the result is ordinary CSS, it costs no download, needs no JavaScript on your site, and scales to any box size without blurring.

Mesh gradient editor

Drag numbered colour points on the canvas, set each colour and reach, then copy the CSS or download a PNG. Presets: Harbour, Apricot, Night shift, Meadow.

The CSS behind a mesh

This is the Harbour preset written out by hand. Edit any value and the result updates in the frame.

Four points over a pale base

Every radial-gradient is one colour point. Layers listed first sit on top of the ones after them.

<style>
  .mesh { height: 170px; border-radius: 16px;
  background-color: #e0ecff;
  background-image:
    radial-gradient(circle at 12% 18%, #4f98fb 0%, rgb(79 152 251 / 0) 55%),
    radial-gradient(circle at 85% 12%, #a5f3fc 0%, rgb(165 243 252 / 0) 50%),
    radial-gradient(circle at 78% 88%, #818cf8 0%, rgb(129 140 248 / 0) 60%),
    radial-gradient(circle at 18% 85%, #f0abfc 0%, rgb(240 171 252 / 0) 45%); }
</style>
<div class="mesh"></div>

What each setting controls

Settings and the CSS they produce
SettingCSS partEffect
Point positioncircle at X% Y%Where the colour is strongest
Point colourfirst colour stopThe hue painted at that spot
Reachsecond stop, e.g. 55%Share of the distance to the farthest corner where the colour is fully clear
Base colourbackground-colorWhat shows where no point reaches
Point orderorder of layersEarlier points cover later ones where they overlap

How stacked radial gradients make a mesh

background-image accepts a comma separated list, and the first layer listed is painted on top. Each layer here is a circle centred on one point, solid at the centre and clear at its reach, so neighbouring colours overlap and mix.

No size keyword is given, so each circle uses the default farthest-corner size, and the stop percentages scale with the box. A point near the centre therefore spreads less than one in a corner with the same reach, and a wide banner makes every circle larger, so preview at the aspect ratio you will really use.

Making it look good

Pick colours that sit near each other on the colour wheel for calm results, and add a single contrasting point for energy. Pull points partly off the edge to suggest the colour continues beyond the frame.

If you see visible banding on large dark gradients, add a faint noise texture image as an extra layer, or lighten the base a little.

How it works

  1. Pick a preset or keep the default, then drag any numbered handle on the canvas to move that colour.
  2. Keyboard users can focus a handle and nudge it with the arrow keys, or type exact X and Y values in the point list.
  3. Change a point's colour and its reach. Reach is where the colour becomes fully clear, measured as a share of the distance from the point to the farthest corner of the box.
  4. Add up to eight points or remove extras, then copy the CSS or download the canvas as a PNG at the size you choose.

Tips

Frequently asked questions

Is this a real mesh gradient?

Design apps such as vector editors build true meshes from a grid of patches. CSS has no mesh function, so this tool layers radial gradients, which gives the same soft, multi-colour feel for backgrounds and hero sections.

How is this different from the shader gradient generator?

The shader tool draws an animated gradient with WebGL and exports a component that runs a script. This one makes a still image from CSS alone, so it renders instantly, prints, and works where scripts are blocked.

Why does each colour fade to a transparent version of itself?

Fading to the keyword transparent can tint the edge towards grey in some interpolation modes. Ending each layer at the same red, green and blue with zero alpha keeps the fringe clean.

Can I use the CSS in Tailwind?

Yes. Put the declarations in a class in your stylesheet, or paste the background-image value into an arbitrary property such as [background-image:...] if you prefer to keep it inline.

Does the PNG match the CSS exactly?

Closely. The download is drawn on a canvas with the same points, colours and reach, but browsers may smooth canvas gradients slightly differently from CSS ones.

Related: Animated shader gradient generator, CSS gradient generator, CSS background generator, SVG pattern generator, Colour contrast checker.

Start for free or see all free tools. We.Inc is free to start, with no card needed. AI building is on paid plans from $20 a month.

More in Free Tools

We.Inc is an AI-powered website builder you can resell under your own brand. Launch a branded client dashboard, bill on Stripe Connect, and deliver AI-generated websites in minutes. White-label plans start at $99 a month for 25 client sites, with a 7-day free trial and no per-site fees.

Product

Who It's For

Features

Resources

Company

View Sitemap