Search⌘ K
AI Features

Colors

Explore the various CSS color methods to style web pages, including named keywords, RGB, RGBA with transparency, hexadecimal codes, and HSL notations. Understand how to apply colors to fonts, backgrounds, and borders, and learn shorthand hexadecimal usage to write efficient CSS color rules.

CSS provides several different ways to specify a color that you can assign to many different properties including those for fonts, backgrounds, and borders. The most readable way of declaring a color value is using a keyword such as red, green, blue, gray, black, white, orange, cyan, magenta, and so on.

Here you can find the full list of color keywords defined by the CSS3 specification.

This list is limited to only a very few percentages of all colors available with other notations:


...