accentTextOn

fun accentTextOn(accent: Color, surface: Color): Color

accent lightened (on a dark surface) or darkened (on a light one) just enough to clear WCAG AA against surface. Returned unchanged when it already passes; blends toward white/black in small steps otherwise, which preserves the hue for the small shifts most accents need.