[Site Map]

Doc's Color Database

This code can be used for many different types of applications. Imagine having an online help, or a catalog with 1000's of items!

For this example, we used a library of colors. Simply enter a color into the textbox below - depressing the 'submit' button will bring up an alert window giving the hex value of the color (if it exists in the database). It will also bring up a small window with the background as the color you requested.

Please input a color:


Enter a hex value in the textbox. Do not include the "#" symbols and make sure the letter values are in "CAPS". Hit submit and it will display the color's name in the box below. Pressing 'view' will bring up a small window with the background as the color you requested.

Please input a hex value:


Result

 

The real value of the program may be looking at all the colors cataloged in the source!  I mean how much difference can there be in the color codes of "dodger blue" and "dodgerblue2"?
Also, if you do know color names and some color codes, be sure to enter them correctly. Just a small mistake will throw the program off.  Note the space in "dodgerblue" isn't in "dodger blue2".

 

Dr. Donna Woolard
Campbell University
woolard@camel.campbell.edu
www.drwoolard.com
www.geocities.com/drwoolard
www.geocities.com/pepraxis
webpages.charter.net/woolard