CSS Colors and Backgrounds
The color property sets text colour, and background-color sets the area behind it. You can name a colour (red), use a hex code (#1b5faa) or use rgb().
p {
color: #ffffff;
background-color: #1b5faa;
}
Try it yourself
Loading editor…
Need a colour code? The Color Picker and CSS Gradient Generator tools on the site give you hex and rgb values to paste here.