color-contrast() – CSS: Cascading Style Sheets | MDN – Mozilla

This post was originally published on this site

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. Syntax color-contrast ( wheat vs tan , sienna , #d2691e ) color-contrast ( #008080 vs olive , var ( –myColor ) , #d2691e )

Stay up to date
Register now to get updates on promotions and coupons.

Shopping cart

×