Suggest an editImprove this articleRefine the answer for “How do you set the text color of an element?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**Text color** is set with the `color` property (for example, `color: red;`) in any supported format: a name, HEX, `rgb()`, `hsl()`, and so on. **Key point:** the color format can be any one CSS supports, the key is using the `color` property.Shown above the full answer for quick recall.Answer (EN)ImageWith the `color` property: ```css selector { color: red; } ``` The color can be set in any supported format, `red`, `#ff0000`, `rgb()`, `hsl()`, and so on.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.