contrast-color() | CSS-Tricks
CSS contrast-color() (Color Module 5) returns black or white for WCAG contrast on a given color, usable via variables, but limited to those two colors and browser support, requiring fallbacks.
CSS contrast-color() (Color Module 5) returns black or white for WCAG contrast on a given color, usable via variables, but limited to those two colors and browser support, requiring fallbacks.