store closest colors in a hex-indexed dict to avoid repeat calculations