contrast-color (npm): Determines the best contrast color to use. Give it a background color and it returns a foreground color (black or white by default but customizable).
Keywords: accessibility|background|black|bright|brighten|brightness|chroma|color|colors|contrast|convert|css|dark|darken|font|foreground|hex|hsl|hsv|light|lightness|luma|luminosity|rgb|text|wcag|white|yiq|contrast-color|font-color|foreground-background|foreground-color