Home / CSS / CSS: Text Color Property

CSS: Text Color Property

By: Simon
Updated:
Feb 3, 2023
Posted: Feb 3, 2023

CSS type properties color

How To Use The Text Color Property

This property determines the text color for elements you target. This changes the color of all text within the element to red. You could also use any valid CSS color value, including a named color (such as red), a hexadecimal color code (such as #FF0000), or an RGB color value (such as rgb(255, 0, 0)).

Text Color Examples for paragraph:

p { color: red; }

p { color: #FF0000; }

p { color: rgb(255, 0, 0); }

Simon Urbina

Simon Urbina

Simon is a Product Designer and Front End Dev with over 20 years of experience. He started as a graphic designer and illustrator coding his first website in 1996. He has worked with brands like Publix, Microsoft, and Discovery Channel.