Linear, radial and conic gradients with OKLCH blending, CSS and PNG
Mesh Gradient Generator
Get the soft, multi colour backdrop look with CSS you can paste, not a heavy image.
Loading tool…
How to use mesh gradient generator
Pick a colour set or keep the starting design.
Drag the dots on the preview to move each colour, and change its colour and spread.
Add up to eight points or remove ones you do not need.
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.
Related tools
Mesh, gradient and glow wallpapers with grain and patterns, up to 8K
Seamless grain on a colour or as a transparent PNG overlay
50 to 950 scales, harmonies and tints from one colour