CSS Colors

Colors of different elements can be set with CSS, by predefined colors, or with RGB, HEX, HSL, RGBA, and HSLA values.

Changing the text color 

The text color can be changed with CSS.

<p style="color:DodgerBlue;">Lorem ipsum...</p>
Changing the background color
Background color can be changed by using CSS background-color property.
<h1 style="background-color:DodgerBlue;">Hello World</h1>
<p style="background-color:Tomato;">Sample Text</p>
Changing border color
Border colors can be changed by border property.
<h1 style="border:2px solid DodgerBlue;">Hello World</h1>