This calculator was borrowed from MSF&W. I previously used one created by Juicy Studio.
Thanks to JavaScripter for the RGB/Hex converter code. I tweaked the appearance, and added a "sample" color box. Otherwise the code's all theirs.
* The "sample" boxes should have a background the same as the color you are converting. Firefox, Safari, IE, and Chrome render this correctly.