Skip to content
hateitall

Mesh Gradient Generator

Get the soft, multi colour backdrop look with CSS you can paste, not a heavy image.

Processed locallyIn: ColourOut: CSS, PNG, JPEG, SVG

Loading tool…

How to use mesh gradient generator

  1. Pick a colour set or keep the starting design.

  2. Drag the dots on the preview to move each colour, and change its colour and spread.

  3. Add up to eight points or remove ones you do not need.

  4. Copy the CSS, or choose a size and download an image, with optional film grain.

What this tool does

  • Builds the mesh from layered radial gradients on a base colour, so the CSS is a few lines with no image file.
  • Draws the PNG and the SVG from the same numbers as the CSS, with each blob fading to its own colour at zero alpha so no grey seams appear.
  • Exports at any size up to 8192 pixels, with optional grain to reduce banding on large screens.
  • Touch and mouse dragging both work.

How the result is verified

Exported images are decoded again and their size checked before saving. The preview is painted with the same CSS the tool gives you.

Frequently asked questions

Will the CSS look the same on every screen size?

Yes. Each blob is sized as a percentage of the element's width and height, so the design stretches with the box. On very wide boxes the blobs become wide ovals, as in the PNG at the same shape.

Why add grain?

Large soft gradients can show visible bands on 8 bit screens. A little grain breaks the bands up and makes the image feel less flat.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Linear, radial and conic gradients with OKLCH blending, CSS and PNG

Colour→ CSSLight on device

Seamless grain on a colour or as a transparent PNG overlay

Colour · Number→ PNGLight on device

50 to 950 scales, harmonies and tints from one colour

Colour · HEX · CSS colour→ CSSLight on device