Background and color schemes
To specify a color, especially background color, in your stylesheet, you must be familiar with using colors. There are two main ways to specify colors in your stylesheets: with a predefined color name (such as black, white, and so on), or RGB color value (such as #000000, #fffffff, and so on).
The color names are easy to use and can be placed as the value of any property that is related to color. For example:
Color: black;
Color names are limited, so web designers most often use RGB color values instead of color names:
Color: #333333;
With the background-color property, you can apply background colors to any element. For example:
Background-color: #ffffff;