I want to compare 1 color (hex or rgb) with a list of colors and choose the more similar of the list.
For example I have #FF1202 and an array with:
array ("FF0000", "00FF00", "0000FF" ...);
I need to find the color more similar in the list (in this case the first: FF0000).
Anyone has an idea?