Line

The Hexadecimal System

Numbers and Letters you may use
to Create Colors in HTML
Line



The hexadecimal system is based on numbers 0-9 and letters A-F.

In HTML six digits from the hexadecimal system are used to create a color. The first two digits represent red. The second two digits represent green. The third two digits represent blue.


Image





Image


0 (zero) = the least amount of color.
F = the strongest amount of color.

All zeros (no color, no light) equals black.
All F’s (all color, all light) equals white.



Numbers and letters that may be used from least amount of light to the most amount of light:


0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F


Examples:

Image

Image

A color table showing the six hexadecimal digits for each of several colors is often available in HTML books such as the one I recommend, mentioned at the bottom of this HTML tutorial Table of Contents.

To learn how to add colors to links, text, background, etc. in your HTML document, read the next section, Wallpaper & Colors.


© Barbara Gibson, October 1996
Fourth Edition, January 1998



HTML Tutorial Table of Contents
Beginning your HTML Document/ Simple HTML Tags
Simple Anchors & Links/ The Hexadecimal System/ Wallpaper & Colors
Gathering Graphics for Your Web Page / Adding Graphics & Graphic Links / Tables / Forms
Frames/ Image Maps