Skip to content

What Is a Mesh Gradient? ​

A mesh gradient is a type of gradient where colors flow from multiple source points distributed across a surface, blending into each other in two dimensions. Unlike a linear or radial gradient — which blends along one axis from a fixed point — a mesh gradient produces organic, multi-directional color transitions that feel natural and three-dimensional.

How mesh gradients work ​

In a standard CSS gradient, you define a direction and a list of color stops along a single axis. The result is predictable but limited — colors can only transition linearly or radially from one edge or center point.

A mesh gradient adds a second dimension. Colors are placed at nodes across the entire surface, and the space between nodes is filled by smoothly interpolating between neighboring colors. The result looks like light falling on a curved, translucent surface — soft, deep, and constantly shifting.

GradLab generates mesh gradients using a WebGL shader — code that runs directly on the GPU. The shader computes color blending at every pixel in real time, which is why the gradient can animate fluidly without any performance cost.

Why mesh gradients look different ​

The visual difference comes from two things:

Multi-point color placement. Linear gradients flow between two edges. Mesh gradients flow between many points simultaneously, which creates more complex color interactions — colors meeting at angles, blending in pockets, wrapping around implied curves.

Multiple color spaces. GradLab supports RGB, OKLCH, and OKLAB, with OKLCH as the default. Compare the lightness and hue transitions for your palette.

Mesh gradient vs CSS gradient ​

CSS gradientMesh gradient
DirectionOne axisMulti-directional
Color sources2+ stops on a lineMany points across the surface
LookClean, geometricOrganic, photorealistic
AnimationCSS transitions (limited)Real-time GPU shader
Browser supportNativeRequires WebGL

See Mesh gradient vs CSS gradient for a full comparison.

Where mesh gradients are used ​

  • App UI backgrounds — iOS and macOS use mesh-style gradients throughout system UI
  • Website hero sections — popular in SaaS and product landing pages
  • Social media graphics — eye-catching backgrounds for posts and stories
  • Presentations — slide backgrounds that feel premium without complex design work
  • Wallpapers — abstract art that adapts to any screen

How to create a mesh gradient online ​

GradLab is a free online mesh gradient generator. Open it in a browser with WebGL support, adjust colors and motion parameters, and export the result as a PNG image, MP4 video, or self-contained HTML file — no sign-up required.