Users can set the background-color of a button through a textbox that accept RGB hexadecimal notation: ff00ff
, ccaa22
, etc. So I need to set the text color to the opposite. Not sure about the terminology (opposite color) but the idea is assure readability.