You can designate the text color on your web page using the 'color' attribute in the HTML fontelement. There are two different methods of entering the value for the color attribute. The easiest way is to use any one of the 140 official recognized color names which make up part of the so-called X11 Color List.
<font color="green">Your green text goes here.</font>
HTML Color Chart
Hover over the color swatches in the color chart on the left to view color names. Click on any swatch to select that color.
Hexadecimal Color Codes
However if you want a much wider range of colors to choose from, color values can also be represented using hexadecimal color codes (which must be preceded by a hash mark '#') which allows you to choose from among potentially 16 million color definitions as opposed to just 140.
The hexadecimal color code is basically just a six-digit code using any number from 0 to 9 or any letter from A through F (case insensitive). The code applies the RGB (red, green, blue) color system where the first two digits control red, the second two digits control green and the last two digits control blue. As a basic example, #ff0000 = bright red, #00ff00 = bright green, and #0000ff = bright blue.
Here's an example of using a hexadecimal color code in the font element:
<font color="#008000">Your green text goes here.</font>
HSB Color Slider
Now, even when using RGB color slider tools, whipping up your own custom hexadecimal colors can be a tedious and mind boggling task. When you only have various saturations of red, green and blue to work with, it's not readily apparent how to make various other colors and tones, like orange, for example.
How to use the HSB Color Slider
Here are a few quick tips on how to use this HSB color slider effectively ~
Use the Hue slider to select a color.
Use the Saturation slider to define how pure the color is rendered.
Use the Brightness slider to define how light or dark the color is rendered.
How to make Black
Set the Brightness slider at 0.
How to make shades of Gray
Set the Saturation slider at 0 and then adjust the Brightness slider.
How to make White
Set the Saturation slider at 0 and the Brightness slider at 100.
How to make Earth Tones
Set both the Saturation and Brightness sliders around 50 and then use the Hue slider to select your color. Then afterwards, you can tweak the Saturation and Brightness according to how you like it.
Default Text Color
And finally, you can set the default text color on your web page in the absence of any other font color code declaration. You do this by using the text attribute in the <body> tag. You can use named colors or hexadecimal color codes. Example:
The above example declares that, unless otherwise specified by any color attributes in <font> tags, the text color on your web page will be Navy blue.