← Color tools

Mesh Gradient Generator

Drag the color points, tune the softness, then copy the CSS or download a PNG. Everything runs in your browser.

Color points4 of 6
Background color
Shows between and behind the points
Shape
1920 x 1080 px

background-color: #11151a; background-image: radial-gradient(ellipse 60% 60% at 20% 30%, #ff922e 20%, rgba(255, 146, 46, 0) 100%), radial-gradient(ellipse 55% 55% at 80% 70%, #7f5af0 20%, rgba(127, 90, 240, 0) 100%), radial-gradient(ellipse 50% 50% at 78% 18%, #2cb1bc 20%, rgba(44, 177, 188, 0) 100%), radial-gradient(ellipse 48% 48% at 22% 84%, #ff4c8b 20%, rgba(255, 76, 139, 0) 100%);

Handles: drag, or focus one and use the arrow keys (hold Shift for bigger steps). The CSS has no grain, the PNG does.

How to make a mesh gradient

  1. Drag the numbered handles on the preview to place each color, or press Randomize for a new palette.
  2. Change a point's color with the swatch or the hex field, and use its slider to make that patch larger or smaller.
  3. Adjust softness for how quickly each color fades out, add grain for a printed look, and pick a shape that fits where it will be used.
  4. Copy the CSS for a website, or choose a size and download the PNG.

The preview is drawn with the same stacked radial gradients as the CSS, so what you copy matches what you see.

Mesh gradient generator FAQ

What is a mesh gradient?

A mesh gradient blends several soft patches of color into each other, so the color shifts in more than one direction instead of along a single line. In CSS the usual way to build one is a stack of radial-gradient() layers, each fading to transparent, on top of a base color. That is what this generator outputs.

How do I use a mesh gradient as a website background?

Click Copy CSS and paste the two lines into the rule for your body, hero or section, for example body { background-color: #11151a; background-image: radial-gradient(...); }. Give the element a height, since an empty block has none. The CSS does not include the grain. If you want grain, download the PNG and use it with background-size: cover.

How do I make a mesh gradient for Instagram or a phone wallpaper?

Pick the 4:5 preset for a feed post and the 9:16 preset for a story, reel cover or phone wallpaper. Set the long side to 1350 for a 1080 by 1350 post, or 1920 for a 1080 by 1920 story, then download the PNG. For a desktop wallpaper, pick the desktop preset and export at 2560 or 3840.

Should I use the CSS or the PNG?

Use the CSS on websites. It is a few hundred bytes, scales to any screen and needs no image request. Use the PNG for social posts, slides, Canva, Figma and anywhere that does not take CSS. The PNG also keeps the grain, which the CSS cannot.

Is the mesh gradient generator free for commercial use?

Yes. The gradients you make are yours to use in client work, products, ads and print. You do not need an account, the PNG has no watermark, and nothing is uploaded because everything runs in your browser.

How do I share or save a mesh gradient?

The page address updates as you edit and stores your points, colors, sizes, softness, grain and shape. Copy the link to share it or bookmark it. Anyone who opens it sees the same gradient.

Related tools

Put these colors to work

Pick a Zaps template for your next post, story or reel, add your photos and match it to your palette.