The Girl with the Brick Earring
> This is done by finding the nearest neighbours in the RGB space.Noooooo. RGB is not useful for anything but computer displays. Always use a suitable color space if you want to calculate with color values. Eg a CieLAB one or similar.