title: Function that converts hex color values to an approximate color name?
body: <p>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.</p>
  
  <p>If you don't know of an existing resource, does anyone know of a good way to approach this problem?</p>
  
  <p>Thanks in advance for the help.</p>