MeshGradient Generator

Place a few colors on a canvas and they blend into a soft, glowing background. Copy it as CSS or save it as a phone or desktop wallpaper.

  • Free forever
  • No sign-up
  • Runs in your browser

Color points

Drag the dots on the preview, or use the sliders.

  • Point 1
    8%
    12%
    55%
  • Point 2
    88%
    8%
    50%
  • Point 3
    78%
    86%
    55%
  • Point 4
    14%
    92%
    50%

Preview

CSS

background-color: #e8f1fb;
background-image:
  radial-gradient(at 8% 12%, #2875c5 0px, transparent 55%),
  radial-gradient(at 88% 8%, #7dd3fc 0px, transparent 50%),
  radial-gradient(at 78% 86%, #a7f3d0 0px, transparent 55%),
  radial-gradient(at 14% 92%, #c4b5fd 0px, transparent 50%);

Positions are percentages of the box, so the same CSS looks a little different on a tall phone than on a wide screen. The phone preview shows how it reflows.

How to use the Mesh Gradient Generator

  1. 1

    Pick a preset or press Shuffle for new ideas.

  2. 2

    Drag the dots on the preview, or use the sliders, to move each color.

  3. 3

    Change colors, spread and the base color until it feels right.

  4. 4

    Copy the CSS, or download a story or desktop PNG.

What is a mesh gradient?

A normal gradient blends colors along one line. A mesh gradient places colors at points across the whole area and lets them melt into each other, so you get soft, organic blends like an aurora or a sunset sky. They're popular for app backgrounds, story covers and website hero sections.

How the CSS works

CSS doesn't have a true mesh gradient, but you can get very close by stacking radial gradients. Each color point is a radial-gradient placed at a position, fading from the color to transparent. A background-color sits underneath and fills the gaps.

The first gradient in the list is drawn on top. The spread is where each color fades out, as a percentage of the distance to the farthest corner. Bigger spreads blend more; smaller spreads give distinct glowing spots.

Tips for a gradient that looks good

Shuffle is a quick way to explore. Each press gives a new mix of colors and positions, and you can tweak any result by hand.

  • Stick to colors that sit near each other on the color wheel, plus one accent.
  • Put points near the edges and corners. Points in the middle tend to look like a spotlight.
  • Pick a base color close to your lightest or darkest point so the gaps blend in.
  • For text on top, keep the area behind it calm, then check contrast.

Sizes for wallpapers and stories

The story PNG is 1080 × 1920 pixels, the size of Instagram and TikTok stories and most phone screens. The desktop PNG is 1920 × 1080, standard full HD for laptops, monitors and slides. Positions are percentages, so the same gradient reflows on a tall or wide canvas. The small phone preview shows how it looks when tall.

Using mesh gradients on a website

Paste the CSS onto any element: a hero section, a card or the page body. Gradients drawn in CSS cost almost nothing to load compared with an image, and they stay sharp at every screen size. For a softer, frosted look, add a semi-transparent white layer or a blur on top of the content panel, not the gradient itself.

Frequently asked questions

How do I make a mesh gradient in CSS?

Stack several radial-gradient() layers in background-image, each placed at a position and fading to transparent, over a background-color. This tool writes that CSS for you.

Will the PNG match the CSS?

Yes. The PNG is painted with the same shapes CSS uses, so it matches the preview at the same proportions.

Why does my gradient look different on a phone?

Positions are percentages of the box, so a tall screen stretches the layout. Check the phone preview, or download the story PNG for a fixed result.

How many color points can I use?

Between three and six. Four or five usually gives the richest blend without turning muddy.

Embed this tool on your site

Want the Mesh Gradient Generator on your own page? Copy the embed code and paste it where you want it to show up.

  • Free to use on your blog or site, with no account.
  • It sizes itself to fit and works on phones.
  • Keep the credit line so readers know where it's from.
your-site.com/blog

Free Mesh Gradient Generator by Hiyaly

Put it allon one link.