Color Name from Hex to Color

I have to implement the color extractor from image so I have too look at the php script that can extract color in image to hex code, but then need to convert hex or rgb to human color name. So this is useful.

In case you are looking for this. It’s an array of color name matching with RGB in format

$colors = array(
"Acid Green" => array(176, 191, 26),
"Aero" => array(124, 185, 232),
...
...

Look at this link: http://pastebin.com/KsPbPU1j

Leave a Reply