pub fn readable_on(color: Rgb, bg: Rgb) -> Rgb
Push color away from bg until it reaches 3:1 contrast. Linguist tunes its palette for a white page, so JSON’s #292929 vanishes on a dark one.
color
bg
#292929