HTML Color Codes

HTML Color Codes

 

Use this page to get HTML color codes for your website. The colors are represented by their hexadecimal values (the most common method for the web). On the color picker, you can also see the RGB values (you can use these for the web too).

Example of HTML color code usage: <td style="background-color:#ffcc99">

To learn more about HTML colors and how to apply them to your website, check out the HTML colors section of the HTML tutorial.

Color Picker

  1. Use the slider on the right to change the hue.
  2. Click anywhere in the large square to pick a color.
  3. Once you're happy with the color, copy the hexadecimal value from the bottom field (the series of 6 digits/letters in bold (for example #FFFFFF).

Website Color Schemer is a useful little utility for picking colors and creating schemes for your website. It provides tools for choosing and comparing colors and allows you to preview them before publishing.


 

Color Names

You can also specify HTML colors by the color name, as well as a decimal code value. Here's a table of the basic color names as recognized in the CSS 2.1 specification.

 

Color Name Hex Code
RGB
Decimal Code
RGB
Maroon 800000 12800
Red ff0000 25500
Orange ffA500 2551650
Yellow ffff00 2552550
Olive 808000 1281280
Green 008000 01280
Color Name Hex Code
RGB
Decimal Code
RGB
Purple 800080 1280128
Fuchsia ff00ff 2550255
Lime 00ff00 02550
Teal 008080 0128128
Aqua 00ffff 0255255
Blue 0000ff 00255
Color Name Hex Code
RGB
Decimal Code
RGB
Navy 000080 00128
Black 000000 000
Gray 808080 128128128
Silver c0c0c0 192192192
White ffffff 255255255
Black 000000 000

More Color Codes & Color Names