calc a color for each cat properly