Generate color based on given string, can be used to generate background color for label