Color Codes

Color Codes come in three different forms:
 * Color Names. i.e. red, yellow, lime, etc. See W3Schools for a full list.
 * Hexadecimal Notation using RGB triplets. i.e. #ff0000, #ffff00, #00ff00. Each set of two characters represents the colors Red, Green, and Blue respectively.
 * Hexadecimal Shorthand Works the same as Hexadecimal Notation except that identical pairs of characters are combined into one. i.e. #f00 #ff0 #0f0.

Color Examples














W3C have listed only 16 valid color names: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.

If you want valid HTML or CSS, use the HEX values instead.



RGBA
CSS3 introduced the possibility to use RGBA (RGB with Alpha) colors.

It can be used like this: rgba(a,b,c,d) Where  is the level of red,   the level green and   the level blue (must all be a number between 0 and 255).

is the transparency of the color, and it must be a value between 0 and 1 (ex : 0.7).

Example
Lorem ipsum Will render like this: Lorem ipsum

216 "Web safe" Colors
Below is a table showing the 216 web safe colors. The really safe colors are underlined:

Web safe colors used to be really important when 8-bit was the standard color setting for most users. However, now with most people using at least 24-bit, moving to 36-bit, they are less important, with more people using hex or decimal colors.

X11 Color Names
From 2005, most general use browsers have given some of the colors names.