# Grainy Gradient

> A warm gradient with a film-grain texture made from an inline SVG noise filter.

- Category: [CSS Gradients & Patterns](https://copy-css.com/category/gradients)
- Tags: noise, grain, texture, svg, background
- Live preview: https://copy-css.com/snippets/grainy-gradient
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="grainy-gradient"></div>
```

## CSS

```css
.grainy-gradient {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #f43f5e, #f59e0b);
}
```

## Notes

- This CSS Grainy Gradient is 5 lines of pure CSS (0.4 KB) with no JavaScript and no dependencies. It uses linear gradients.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
