Function that converts hex color values to an approximate color name?
- by dclowd9901
I don't suppose anyone knows of a function (PHP, preferably) that can take a hex color code and give an approximate color name for that hex value. I don't need a solution with 100s of colors. Even if it just amounted to the colors white, black, red, green blue, brown orange and yellow, I'd be pretty well in shape.
If you don't know of an existing resource, does anyone know of a good way to approach this problem?
Thanks in advance for the help.