utility to decide when to use light or dark text given a background color.