HTML Web Colors

Hexadecimal Codes

These codes uses a combination of letters A - F and numerals 0 - 9 to display colors. Newer browsers can display colors using the 17 color words.

Specify colors by using hexadecimal numbers of each part of Red, Green, and Blue.The RGB uses six digits for each color. See a listing of Web Safe Colors to use.

Open the file demo/demo_color_names.htm and explore.

RedGreenBlueHex Code Description
FFFFFFFull Brightness
CCCCCC80% Brightness
99999960% Brightness
66666640% Brightness
33333320% Brightness
000000None of this color

HTML Color Names

It is highly advisable to use Style Sheets for applying text and background colors. Using HTML permitted color in this format: <body bgcolor="yellow">

Browser 16 Color Words and for 2008 now 17 words
aqua 00ffff black 000000 blue 0000ff fuchsia ff00ff
gray 808080 green 008800 lime00ff00 maroon 800000
navy 000080 olive 808000 purple 800080 red ff0000
silver c0c0c0 teal 008080 white ffffff yellow ffff00
17th color is orange ffa500

RBG Triplet Color Codes

The triplets of colors are based on the strength of its red, blue, and blue. CSS represents the mathematical formula of white as : rgb(255, 255, 255). Open the color chart- demo_color_names.htm in the demo folder
Web Design with XHTML Part I
Doris Cuffey,Instructor