CSS Mesh Gradient Generator
Create multi-point mesh gradients with draggable color stops and copy-ready CSS code.
Preview DRAG STOPS
Drag the colored handles to reposition stops. Click a handle to select that stop.
Presets
CSS export
Download the gradient as an SVG image.
Color stops 0
Each stop adds a radial gradient layer. Minimum 2 stops, maximum 8.
CSS Mesh Gradient Generator
A mesh gradient blends several radial gradients into one organic, multi-color surface. It's the modern alternative to flat color backgrounds — used by Apple, Stripe, Linear, and modern SaaS products. This tool lets you build one interactively and export production-ready CSS.
What Is a Mesh Gradient?
A mesh gradient is a smooth, multi-color surface created by layering multiple radial gradients at different positions. Unlike linear or conic gradients — which flow in a single direction — mesh gradients let you place color "anchors" anywhere on the canvas.
The result looks like a soft, organic blob of color — used for hero backgrounds, cards, mobile app splash screens, and branding. Because each stop is a radial gradient with a transparent falloff, they blend into one another naturally.
How This Tool Builds the CSS
Every stop becomes one layer in a comma-separated `background-image` value:
background:
radial-gradient(circle at 25% 30%, #f72585 0%, transparent 55%),
radial-gradient(circle at 75% 20%, #7209b7 0%, transparent 55%),
radial-gradient(circle at 30% 80%, #3a0ca3 0%, transparent 55%),
radial-gradient(circle at 80% 75%, #4361ee 0%, transparent 55%),
#1a0b2e;
Each layer's at X% Y% is the stop's position, its color is the stop's color, and
the transparent 55% falloff creates the soft blend. The final solid color acts as
a base fill so transparent areas aren't actually blank.
Which Browsers Support It?
- Chrome, Edge, Safari, Firefox: 100% supported — layered radial gradients have worked for over a decade.
- iOS Safari and Android Chrome: supported including the color picker and drag interactions.
- Older browsers: fall back gracefully — the base color still applies.
- SVG export: works everywhere, including image viewers that don't run CSS.
Where Mesh Gradients Shine
- Hero sections: grab attention with a colorful animated-looking backdrop that is actually a single CSS rule.
- Cards & modals: add depth behind content without heavy imagery.
- Mobile app backgrounds: lightweight — no image downloads.
- Social media images: use the SVG or PNG export for gradient art.
- Brand illustrations: a mesh gradient can become a signature visual element.
- Presentation covers: modern, minimal, and colorful.
Tips for Better Mesh Gradients
- Keep it to 3–5 stops. Too many stops create visual chaos — 3–5 is the sweet spot for hero backgrounds.
- Use one base color. A dark or light base helps the mesh feel intentional instead of accidental.
- Balance hue and lightness. Colors that differ only in hue look vibrant; colors that differ in lightness look soft.
- Add a subtle noise overlay if you want a print-like texture — the gradient itself is smooth.
- Check contrast for text. Mesh gradients behind text need a scrim or dark overlay to keep contrast above 4.5:1.
CSS Mesh Gradient FAQ
Does every browser support CSS mesh gradients?
Yes — the technique uses layered radial-gradients, which have been supported in every modern browser for over a decade.
How many stops should I use?
3 to 5 stops work best. More than 6 stops can look muddy and harder to read text on.
Can I animate the gradient?
You can animate opacity or transform of a container, but animating the gradient layers themselves is heavy. Consider a CSS blur filter for a subtle breathing effect instead.
Can I download the gradient as an image?
Yes — use the SVG or PNG export buttons. SVG is sharper for scaling, PNG is more compatible.
Can I use this in React or Vue?
Yes — the CSS output works with any framework. Tailwind export is also available if you prefer utility classes.
Is the gradient editable after export?
Yes — the CSS is fully editable. Each layer is on its own line, so you can tweak positions and colors independently.
Build a Mesh Gradient in Seconds
Drag stops, pick colors, tune positions — and copy the CSS. Every gradient is layered radial gradients that work in every modern browser, with SVG and PNG export for use outside the web.