HTML Colors

HTML Color Names and Color Codes in Property Values

These are the color names and other property values for the sixteen standard HTML colors. For other colors, use the HTML Color Picker.

Color NameHex Color CodeRed / Green /
Blue / Alpha
Hue / Saturation /
Luminance / Alpha
aqua#00ffffrgba(0, 255, 255, 1.0)hsla(180, 100%, 50%, 1.00)
black#000000rgba(0, 0, 0, 1.0)hsla(0, 0%, 0%, 1.00)
blue#0000ffrgba(0, 0, 255, 1.0)hsla(240, 100%, 50%, 1.00)
fuchsia#ff00ffrgba(255, 0, 255, 1.0)hsla(300, 100%, 50%, 1.00)
gray or grey#808080rgba(128, 128, 128, 1.0)hsla(0, 0%, 50%, 1.00)
green#008000rgba(0, 128, 0, 1.0)hsla(120, 100%, 25%, 1.00)
lime#00ff00rgba(0, 255, 0, 1.0)hsla(120, 100%, 50%, 1.00)
maroon#800000rgba(128, 0, 0, 1.0)hsla(0, 100%, 25%, 1.00)
navy#000080rgba(0, 0, 128, 1.0)hsla(240, 100%, 25%, 1.00)
olive#808000rgba(128, 128, 0, 1.0)hsla(60, 100%, 25%, 1.00)
purple#800080rgba(128, 0, 128, 1.0)hsla(300, 100%, 25%, 1.00)
red#ff0000rgba(255, 0, 0, 1.0)hsla(0, 100%, 50%, 1.00)
silver#c0c0c0rgba(192, 192, 192, 1.0)hsla(0, 0%, 75%, 1.00)
teal#008080rgba(0, 128, 128, 1.0)hsla(180, 100%, 25%, 1.00)
white#ffffffrgba(255, 255, 255, 1.0)hsla(0, 0%, 100%, 1.00)
yellow#ffff00rgba(255, 255, 0, 1.0)hsla(60, 100%, 50%, 1.00)

Note that, as shown above, the alpha value must be specified as a decimal number (ex: 1.00), not a percentage (100%).