This is a quick-and-dirty JavaScript that I wrote to help demonstrate what various colors do in HTML. Feel free to link to it.
Type a hex code or a color name in the window (do not include the hash symbol). Then click Go. This page's background or text will change to the specified color. If you enter a color name that is not recognized, you'll get black.