Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The color-contrast()
functional notation takes a color
value and compares it to a list of other color
values, selecting the one with the highest contrast from the list.