CSS color property

CSS color

CSS color property is used to add foreground colors to the text content and the text decorations.

Values for the CSS color property can be expressed as a hexadecimal value, rgb value, or using the name of the color.

Example

Try Yourself