HTML/CSS Color Names W3Schools
| | | |

Having Fun With HTML/CSS Color Names

No hexadecimals allowed!

In Photoshop you probably learned about hexadecimals to represent colors such as #000000 (black), #ffffff (white), #ff0000 (bright red), #999999 (med. grey), and so on. These are colors beyond the CMYK (printable) spectrum that are only visible on computer monitors, mobile device screens (tablets & phones), and TVs. These are letters/numbers that represent additive colors.

But did you know web browsers can render colors according to a set of HTML/CSS names? There are currently 140 color names that are supported by browsers. Some names are simple such as black, blue, yellow, and DarkGrey. However, other names are more fun to remember and use such as LemonChiffon, Khaki, and Peru. 

You can use these in CSS styles without the upper and lower case letters. So, CSS would look like:

h1 {color:peru;}

Refer to the W3Schools for a list of supported HTML Color NamesLinks to an external site.

Image: W3Schools (cropped)

Similar Posts