contrastOn
Which of black or white to put on a colour, by the rule Windows Phone used: light accents take black text, dark ones take white.
The threshold is the one Metro-Compose uses. It flips only Yellow in practice; Lime and Amber stay on white text at roughly 2.2:1, which is the authentic result and fails WCAG AA. That trade is deliberate — see D7.