16 Basic HTML Colors

The basic 16 colors defined in HTML. These 16 colors can be displayed without any problem in any browser, and can be displayed by specifying the color name in HTML.

Color Sample Color Code Color component
Hexadecimal (red, green, blue)
Color component
Decimal (red, green, blue)
Color name
#FFFFFF FF FF FF 255 255 255 White
#C0C0C0 C0 C0 C0 192 192 192 Silver
#808080 80 80 80 128 128 128 Gray
#000000 00 00 00 0 0 0 Black
#FF0000 FF 00 00 255 0 0 Red
#800000 80 00 00 128 0 0 Maroon
#FFFF00 FF FF 00 255 255 0 Yellow
#808000 80 80 00 128 128 0 Olive
#00FF00 00 FF 00 0 255 0 Lime
#008000 00 80 00 0 128 0 Green
#00FFFF 00 FF FF 0 255 255 Aqua
#008080 00 80 80 0 128 128 Teal
#0000FF 00 00 FF 0 0 255 Blue
#000080 00 00 80 0 0 128 Navy
#FF00FF FF 00 FF 255 0 255 Fuchsia
#800080 80 00 80 128 0 128 Purple