color-contrast()
Discouraged
This feature is discouraged. Consider using contrast-color() instead. For the rationale, see:
The color-contrast()
CSS function picks a color from a list that has the most contrast with another color.
Learning resources on MDN
No MDN documentation found.Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌
Specifications
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature