3 Fonts and Color
3 Fonts and Color
16,777,216 different
colors
Using Hexadecimal Color Codes
If the first two digits (red values) are full (FF) and
the other four are null (00) the color will be red.
<font color="#FF0000">#FF0000 -
AaBbCcDdEeFf1234567890</font>
<bgcolor="#FF0000"><font
color="#000000">Background #FF0000</font>
Mixed Colors
216 Safe Colors to Use
Hexadecimal Color Codes allow for 24-bit color
resolution, or a total of 16,777,216 possible colors.
However, not every computer is capable of
displaying all of these colors.
Since most computers are capable of displaying at
least 256 colors, a Safe Palette of colors was
created. This palette is constructed by incrementing
each color value by 51 decimal, or 33 hexadecimal.
or 00, 33, 66, 99, CC, and FF.
This allows for a palette of 216 colors, which stays
inside the range of possible colors for a computer
that supports 256 colors.
http://support.microsoft.com/?kbid=304335
Example
<html>
<head>
<title>Hex Color Code</title>
</head>
<body bgcolor="#0000FF" text="#FFFFFF">
<p>White text on Blue background.</p>
<p><font color="#000000">
Black text on Blue background.</font></p>
</body>
</html>
Sample Hex Color Code
References
What colors?
http://www.dailymail.co.uk/femail/article-
2979076/You-believe-eyes-Company-
optical-illusion-dress-divided-internet-
produce-white-gold-blue-black.html
Why different colors for different
people
http://www.dailymail.co.uk/femail/article-
2979076/You-believe-eyes-Company-
optical-illusion-dress-divided-internet-
produce-white-gold-blue-black.html