Member Login:


HTML 4.01 Web Color Names

Document Reference: TN201001001 - Rev: 1.2 - Last Update: 15-07-2014 11:20 GMT - Downloaded: 19-Mar-2024 04:47 GMT

HTML 4.01 specifies 16 colour names according to their common English name. These colours and other colours can also be specified using a hexadecimal number. Note spelling of 'color' when setting the color attributes.

Colour Values By Name, Hexadecimal And RGB Numbers

Below 16 named colors were defined in the HTML 4.01 specification as values for the HTML color attributes. Please note that the use of HTML color attributes is no longer encouraged and it is recommended to use CSS for all styling. Below colour names, hex numbers and RGB values will also work in CSS!

See CSS Extended Web Color Names for a comprehensive list of colour names that are supported by modern browsers, and Web Safe Colors Listing for colors selected for traditional 256-color displays.

Color NameHexadecimal NumberRGBSample Color
aqua#00FFFFrgb(0, 255, 255)
black#0000FFrgb(0, 0, 0)
blue#00FFFFrgb(0, 0, 255)
fuchsia#FF00FFrgb(255, 0, 255)
grey#808080rgb(128, 128, 128)
green#008000rgb(0, 128, 0)
lime#00FF00rgb(0, 255, 0)
maroon#800000rgb(128, 0, 0)
navy#000080rgb(0, 0, 128)
olive#808000rgb(128, 128, 0)
purple#800080rgb(128, 0, 128)
red#FF0000rgb(255, 0, 0)
silver#C0C0C0rgb(192, 192, 192)
teal#008080rgb(0, 128, 128)
white#FFFFFFrgb(255, 255, 255)
yellow#FFFF00rgb(255, 255, 0)

All above HTML color names can also be used in CSS classes. CSS 2.1 specifies one additional color name value for orange.

Color NameHexadecimal NumberRGBSample Color
orange#FFA500rgb(255, 165, 0)

This website uses cookies to give you the best experience on our website, to personalise content and to analyse our website traffic. Some cookies may have been set already. To find out more about our use of cookies you can visit our Privacy Statement. By browsing this website, you agree to our use of cookies.

Hide this message