EN

Mesh Gradient Generator

Blend several soft color spots into a smooth mesh gradient background. Everything is plain CSS (layered radial gradients), so it loads instantly.

Base color
Color spots
background-color: #F5F3FF;
background-image:
  radial-gradient(at 10% 15%, #8B5CF6 0px, transparent 55%),
  radial-gradient(at 85% 10%, #F472B6 0px, transparent 55%),
  radial-gradient(at 75% 85%, #FCD37A 0px, transparent 60%),
  radial-gradient(at 15% 90%, #86E3C3 0px, transparent 55%);

How to use it

  1. Pick a base color for the background.
  2. Set 2 to 6 color spots: each has a color and a position (X and Y in %).
  3. Press Randomize positions for new layouts with the same colors.
  4. Copy the CSS, or download the SVG or a 1920×1280 PNG.

How a CSS mesh gradient is built

True mesh gradients come from design apps. On the web the same look is made by stacking several radial-gradient() layers that fade to transparent over a base color: radial-gradient(at 10% 15%, #8B5CF6 0px, transparent 55%). Each layer is a soft spot of color; together they blend into a mesh.

Tips

Frequently asked questions

What is a mesh gradient?

A mesh gradient blends colors from several points in two directions, instead of along one line. In CSS it is approximated by layering radial gradients that fade out, which is what this tool writes.

Is the downloaded SVG safe to use on my site?

Yes. The file contains only an svg element, shapes and colors written from a fixed template, with no scripts, fonts or external links.

Can I use it commercially?

Yes. What you make is generated in your browser from your settings; use it in personal or commercial work without credit.

Related tools