CSS color property

Description

CSS color defines the color of text content.

Syntax

color : color-name | rgb value | hexadecimal value

Property values

color-nameDefault

The following demo represents skyblue text color.

color: black;

rgb value

It represents rgb value of a color. The hexadecimal value of red color is given below.

color: rgb(255,0,0);

hexadecimal value

It represents hexadecimal notation of red color. The hexadecimal notation of blue color is given below.

color: #0000ff;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
See the color of text
×

Ctrl+D