Photography and Imagery · Step 5 · 5 min read
Texture, grain and noise
Grain makes digital images feel physical, hides banding in gradients and can turn into mush on a phone. What grain and texture do, how to make noise in the browser with an SVG filter, how Figma does it, and how much is enough.
Grain is the treatment you feel before you see. A little noise makes a clean digital image feel like it was printed or shot on film. It also fixes a real technical problem in gradients. Too much, and the texture becomes the subject. The work is finding the amount where people feel it and don't notice it.
What you'll be able to do after reading:
- Explain what grain, noise and texture add to an image
- Use noise to hide banding in gradients
- Make grain in CSS with an SVG filter, and in Figma
- Judge how much grain is enough, on every screen size
1. Clean, fine, heavy
CleanNo texture
Fine grainFelt more than seen
Heavy grainA style, and a loud onefeTurbulence), laid over the photo in overlay mode. Fine grain adds texture you feel more than see; heavy grain is a style, and a loud one. Look at it on a phone too: grain that works on a big screen can turn to mush when it's small. Grain shows most in smooth areas, like the blurred background, and hides in busy detail.Photo: Danielle MacInnes, Wikimedia Commons (from Unsplash), CC0.Grain is the fine random speckle you see in film photos, from the crystals in the film. Noise is its digital cousin, from the camera sensor in low light. Designers add both on purpose, because they make an image feel physical, warm, less like a screen. Texture is the broader idea: paper, fabric, concrete, laid over or behind an image.
Fine grain, like the middle photo, is a finish. Heavy grain, like the last one, is a style: retro, raw, loud. Both are fine if you chose them. What doesn't work is heavy grain added because "it looked more interesting", on a product that otherwise is calm.
2. Grain that fixes something: banding
A long, subtle gradient can break into visible stripes, banding, when there aren't enough shades between its colours. It shows most on large dark gradients and after compression. A layer of fine noise breaks up the edges between the stripes, so the eye reads a smooth blend again. Jimmy Chion's CSS-Tricks article on grainy gradients notes this use: noise isn't only for style, it also combats banding (CSS-Tricks, Grainy Gradients, 2021).
3. Making grain in the browser
You don't need an image of grain. The browser can draw it, with an SVG filter called feTurbulence, which generates fractal noise (MDN, feTurbulence). Put it in a small SVG, use it as a background over the photo, and blend it in overlay, so its mid grey disappears and only the specks show (see Blend modes and the maths behind them):
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none;
background-image: url("data:image/svg+xml,…<feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/>
<feColorMatrix type='saturate' values='0'/>
<feComponentTransfer><feFuncA type='table' tableValues='1 1'/></feComponentTransfer>…");
mix-blend-mode: overlay;
opacity: .4; } /* the amount: the one number to tune */
The figure above uses this exact rule. The middle lines matter: the colour matrix makes the noise grey, and the transfer makes it fully opaque, because feTurbulence also scatters noise into transparency, and half-transparent specks almost disappear in overlay. Then two dials:
baseFrequency: higher numbers give finer grain, lower numbers give coarser blobs.opacity: how strong it is. Start low.
Sara Soueidan's series on SVG filters explains the whole family, if you want to go further (Codrops, SVG Filters 101, 2019).
4. In Figma
Figma has Noise and Texture as layer effects, next to shadows and blurs (Figma Help, effects). They're quick for exploring. When you hand over, say what the effect is meant to do ("fine grain, overlay, barely visible") and agree with the developer how it will be built, because the browser's grain won't match Figma's pixel for pixel.
5. How much is enough
- Check it small. Grain is measured in pixels, not percentages. Grain that looks like film on a desktop hero can look like a dirty screen on a phone, or vanish completely.
- Check it compressed. Noise is the hardest thing for image compression: a baked grainy photo can be much larger than a clean one. Drawing grain in CSS, over a clean file, avoids that.
- Check it with text. Grain under small text makes it harder to read. Keep text on clean areas or above a scrim (next lesson).
- Use one grain. Like the grade, the product should have one, not one per designer.
6. Common mistakes
- Heavy grain on everything, because it looked good on one hero.
- Baking grain into large photos and doubling their file size.
- Grain under small body text.
- Judging grain only on a large, sharp monitor.
7. Vocabulary
| Term | Meaning |
|---|---|
| Grain | Fine random speckle, from film, or added to imitate it |
| Noise | Random variation in pixels, from a sensor or added on purpose |
| Texture | A surface pattern, like paper or fabric, laid over or under an image |
| Banding | Visible stripes in a gradient that should look smooth |
| feTurbulence | The SVG filter that generates noise in the browser |
8. Try it (no tools needed)
- Find a website or app that uses grain or texture.
- Look at it on a big screen, then on your phone.
- Write down if the grain changed what you felt, and if it got in the way of anything.
Reflection questions: Would the page feel different without the grain? Would anyone miss it, and who?
9. If you already practise
- Define the product's grain once: frequency, opacity and blend mode, as a shared class.
- Keep grain in CSS over clean files, and check the file sizes of anything baked.
- Add a grain check to your QA on a small phone.
Checklist
Learn more
- Jimmy Chion, Grainy Gradients (CSS-Tricks, 2021)
- MDN, feTurbulence
- Sara Soueidan, SVG Filters 101 (Codrops, 2019)
- Figma Help, apply effects to layers
Related
Blend modes and the maths behind them · Grade, black and white and duotone · Masks, clip paths and scrims · Treatment with a purpose