<p><a href="https://stackoverflow.com/questions/180/function-for-creating-color-wheels">Original Question</a></p>

<p>I am looking for a function that attempts to quantify how "distant" (or distinct) two colors are. This question is really in two parts: </p>

<ol>
<li>What color space best represents human vision?</li>
<li>What distance metric in that space best represents human vision (euclidean?)</li>
</ol>

The easiest
distance
would of course be to just consider the colors as 3d vectors originating from the same origin, and taking the distance between their end points.
If you need to consider such factors that green is more prominent in judging intensity, you can weigh the values.
ImageMagic
provides the following scales:
red: 0.3
green: 0.6
blue: 0.1
Of course, values like this would only be meaningful in relation to other values for other colors, not as something that would be meaningful to humans, so all you could use the values for would be similiarity ordering.