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
Surveys
Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper votes
Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist