There are millions of possible color codes
and there are millions of color tables; all with different color scheme
so the problem is to find a nice table of colors
and to select from that a nice set of colors to use in the site;
generally it is better do not exceed in the number of colors in a site and to maintain some homogeneity
choosing one or two background color
one or two text color
some color for the links
Choosing as text color the complementary color of the background color
you'll obtain the highest contrast and legibility as possible with that background.
Here some link I found to some good Online Color Scheme Generator
The 216 Cross-Browser Color Palette or Web-Safe Color Palette was created to ensure that all computers use the same colors when running a 256 color palette; just an example of the many color tables you could to find searching on google http://www.google.com/
for something like "html color code" or "color code generator" or "palette color code" and so on.