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
Using the wiki link used in Artefacto's answer I grabbed all the color names and formed an array containing 1,175 color names. Unfortunately Stackoverflow only allows 30,000 characters in answers so here's the link.