# Background color

Fills an element's background with a color.

## What does `background-color` do?

`background-color` fills an element's background, behind its content and padding.

```css
.warning { background-color: #fff3cd; }
```

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/novice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/background-color
