10
votes
4answers
3k views

Choosing high contrast text color (in relation to background color) dynamically

My application has an area with some number of controls. Each control's background color expresses a state of some sort. The controls are also numbered via some text in their foreground. For ...