Hex/RGB Conversion for Colors

This web page uses Javascript to convert "regular" numbers used to represent red, green, and blue in Cascading Style Sheets (CSS) color style to and from hexadecimal color codes. The Javascript is from http://www.w3.org/MarkUp/Guide/Style (Dave Raggett's Introduction to CSS)

Enter RGB or Hex value and press appropriate button to convert
red: Hex color value
green:
blue:

Here are some colors you can refer to by name (and their hexadecimal codes):

black = "#000000" green = "#008000"
silver = "#C0C0C0" lime = "#00FF00"
white = "#FFFFFF" olive = "#808000"
gray = "#808080" yellow = "#FFFF00"
maroon = "#800000" navy = "#000080"
red = "#FF0000" blue = "#0000FF"
purple = "#800080" teal = "#008080"
fuchsia = "#FF00FF" aqua = "#00FFFF"