CSS Noisy Gradient Background

A grainy, noisy gradient in pure CSS with no images: one sheet of sub-pixel noise blended over a warm mesh with overlay. Set the grain and every color live.

10%
#880088
#cc3f47
#f09f33
#223b8c
.bg-noisy-gradient {
  --grain: 10%;
  --bg: #880088;
  --c1: #cc3f47;
  --c2: #f09f33;
  --c3: #223b8c;
  background-color: var(--bg);
  background-image:
    repeating-radial-gradient(circle at -41.37px -23.71px, color-mix(in srgb, white var(--grain), gray) 0 0.0000058667%, color-mix(in srgb, black var(--grain), gray) 0 0.000013333%),
    radial-gradient(circle at 15% 20%, var(--c2) 0, transparent 55%),
    radial-gradient(circle at 85% 30%, var(--c1) 0, transparent 60%),
    radial-gradient(circle at 50% 110%, var(--c3) 0, transparent 65%);
  background-blend-mode: overlay, normal, normal, normal;
}
<div class="
  [--grain:10%]
  [--bg:#880088]
  [--c1:#cc3f47]
  [--c2:#f09f33]
  [--c3:#223b8c]
  [background-color:var(--bg)]
  [background-image:repeating-radial-gradient(circle_at_-41.37px_-23.71px,_color-mix(in_srgb,_white_var(--grain),_gray)_0_0.0000058667%,_color-mix(in_srgb,_black_var(--grain),_gray)_0_0.000013333%),_radial-gradient(circle_at_15%_20%,_var(--c2)_0,_transparent_55%),_radial-gradient(circle_at_85%_30%,_var(--c1)_0,_transparent_60%),_radial-gradient(circle_at_50%_110%,_var(--c3)_0,_transparent_65%)]
  [background-blend-mode:overlay,_normal,_normal,_normal]
"></div>
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Noisy Gradient — CSS background</title>
  <style>
    html, body { height: 100%; margin: 0; }
    .bg-noisy-gradient {
      --grain: 10%;
      --bg: #880088;
      --c1: #cc3f47;
      --c2: #f09f33;
      --c3: #223b8c;
      background-color: var(--bg);
      background-image:
        repeating-radial-gradient(circle at -41.37px -23.71px, color-mix(in srgb, white var(--grain), gray) 0 0.0000058667%, color-mix(in srgb, black var(--grain), gray) 0 0.000013333%),
        radial-gradient(circle at 15% 20%, var(--c2) 0, transparent 55%),
        radial-gradient(circle at 85% 30%, var(--c1) 0, transparent 60%),
        radial-gradient(circle at 50% 110%, var(--c3) 0, transparent 65%);
      background-blend-mode: overlay, normal, normal, normal;
    }
  </style>
</head>
<body class="bg-noisy-gradient"></body>
</html>

Save the pattern as an image, with your current colors and settings.

How this noisy gradient works

The noise is one repeating-radial-gradient() with rings far smaller than a pixel. The browser can’t draw rings that small, so each pixel lands on a light or a dark ring almost at random: half get a light speck, half a dark one. No image, SVG or JavaScript is involved.

The ring size is a percentage, so every box gets about 7.5 million rings whatever its size. That’s as fine as Chrome will draw before falling back to a flat color, and it keeps the grain free of streaks on small cards, wide heroes and zoomed-in screens.

background-blend-mode: overlay mixes the noise into the gradient under it: light specks brighten, dark specks darken, and the hue stays. --grain sets how far apart they are. Around 10% gives a subtle, printed feel, and 30–50% looks like high-ISO film.

Under the noise is a warm mesh of orange, red and navy glows on purple. Chrome and Edge show the grain. Safari shows the clean gradient.

All CSS background gradients →