Grainy gradients: adding noise and texture to backgrounds
A little grain removes banding and makes flat gradients feel printed. How to add it, how much to use and how to keep it crisp at every size.
Updated 2026-11-16
Why grain helps
Smooth gradients across large screens often show stepped bands, because 8-bit colour has only 256 levels per channel. Fine noise breaks those steps up so the eye sees a continuous transition. It also adds a tactile, analogue quality that keeps large areas of colour from looking flat.
Keep it subtle and scale it with the output
Grain should be felt more than seen: an overlay or soft-light blend at 20–40 % opacity is usually enough. Size matters too — grain that looks right at 1080p turns into mush when scaled to 4K, so generate it at the export resolution rather than stretching a small noise image.
CHROMA79 renders grain per output pixel relative to a 1080p reference, so a 4K wallpaper gets the same visual grain as the preview, and every export is dithered to avoid banding even without a grain layer.
Grain in CSS
CSS has no noise function. The usual approach is a tiny tiled noise image or an SVG `feTurbulence` filter layered over the gradient. For a hero background that has to look exactly like the design, export the composition with its grain as an image.
.hero {
background:
url('grain.png') repeat,
linear-gradient(160deg, #fde68a, #f97316 55%, #7c2d12);
background-blend-mode: overlay, normal;
}