In order to give each colour a fitness,
a distance from the chosen colour needs to be calculated.
If you imagine the Red, Blue and Green values as X, Y and Z coordinates in a graph
then the distance between two colours is simply the distance in 3D space.
This distance is then translated into a fitness score between 0 and 100
(identical colours score 100, opposite colours score 0).