Add function to get the color

Add the function to det the random color for the labels.