CSS color

Previous Next

Demo of the different values of the color property.

Click the property values below to see the result:

color: red;
color: #0000ff;
color: rgb(0, 255, 0);
color: rgba(0, 255, 0, 0.5);
color: hsl(0, 100%, 50%);
color: hsla(0, 100%, 50%, 0.1);

The color property

The color property sets the text color of an element.

The color property

The color property sets the text color of an element.

The color property

The color property sets the text color of an element.

The color property

The color property sets the text color of an element.

The color property

The color property sets the text color of an element.

The color property

The color property sets the text color of an element.

Play more with the code in our Tryit yourself editor: Try it Yourself ❯