Added adaptive text color

Added two functions. The name of the color now appears either in black or in white, depending of the brightness of the choosen color.
Especially for very bright colors, you can't read a text with 'color: #FFFFFF'