** Color can really bring your pages to life. **
The color property allows you to specify the color of text inside an element. You can specify any color in CSS in one of three ways:
rgb values
hex codes
color names
CSS treats each HTML element as if it appears in a box, and the background-color property sets the color of the background for that box.
Every color on a computer screen is created by mixing amounts of red, green, and blue. To find the color you want, you can use a color picker.
When picking foreground and background colors, it is important to ensure that there is enough contrast for the text to be legible.
CSS3 has introduced an extra value for RGB colors to indicate opacity. It is known as RGBA. also allows you to specify colors as HSL values, with an optional opacity value. It is known as HSLA.
background-color: hsl(0,0%,78%)
The hsla color property allows you to specify color properties using hue, saturation, and lightness as above, and adds a fourth value which represents transparency (just like the rgba property). The a stands for:
alpha
This is expressed as a number between 0 and 1.0. For example, 0.5 represents 50% transparency, and 0.75 represents 75% transparency.