contrast-color()
The contrast-color() CSS function picks a color that has guaranteed contrast against a specified foreground or background color.
Status
Limited availability
MDN documentation
Specifications
Browser support
- Chrome ❌ See crbug.com/40142548
- Chrome Android ❌ See crbug.com/40142548
- Edge ❌ See crbug.com/40142548
- Firefox 146 Released on 2025-12-09
- Firefox for Android 146 Released on 2025-12-09
- Safari 26 Released on 2025-09-15
- Safari on iOS 26 Released on 2025-09-15
Developer signals
- State of CSS 2025: usage/favorite_new_features question
- State of CSS 2025: usage/css_missing_features question
- State of CSS 2025: usage/css_interoperability_features question
- State of CSS 2025: colors/colors_pain_points question
Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper signals
Votes: 8
If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist