bsFontColor returns a readable foreground color (black or white) for a given background — perfect for chips, badges, and other dynamically-coloured surfaces.
bsFontColor