Added a better color similairy function

The old one gave gray as the best value for most stuff.
This is a function that i have used before and i have generally found it to be quite good.