HTML Colors

Valid XHTML 1.0!

Valid CSS!

Optimized for Firefox

Browse Happy logo

Below are the most used standard web colors supported by most browsers. There are three ways to define a color.

  1. The name of the color. Most browsers support - at least - the colornames shown below.
  2. In hexadecimal format: #rrggbb. This is the recommended way because it's best supported by browsers and allows you to define any color, not just a few predefined colors.
  3. The decimal rgb(rr,gg,bb) format. Personally I think it's a little less clear - and less compact - as the hex format. Also some browsers might not support this format.

With both methods 2 and 3 let you mix three primary colors: red, green and blue. rgb(0,0,0) means none of these colors, which results in black. In contrast: rgb(255,255,255) is all three colors fully mixed, resulting in pure white. Hexadecimal numbers range from 00 to FF, while their decimal counterparts are 0 and 255.

Color Name Hex rgb(...)
 aqua #00FFFFrgb(0,255,255)
 black #000000rgb(0,0,0)
 blue #0000FFrgb(0,0,255)
 fuchsia#FF00FFrgb(255,0,255)
 gray #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)

Note: Your browser does not seem to support JavaScript or you do not have it enabled. Although this is not a problem, you are missing some small but useful features on this site.

[asc] [desc]