Background Color
The background-color property sets the base fill colour of an element's background area, including its padding box but not the margin.
Interaction with Transparency
If a background-image is present, background-color shows through transparent parts of that image and serves as a fallback when the image fails to load.
Color Values
Any CSS colour value is accepted: hex, rgb(), hsl(), named colours, or transparent (the default for most elements). The keyword initial resets to transparent.
Gradient as Background
While technically a background-image, CSS gradients are the most common way to achieve non-solid background fills and can be layered above a solid background-color.