prefers-contrast media query
Widely available since 2024-11-30
The prefers-contrast
CSS media query sets styles based on whether the user prefers more or less contrast, the difference between foreground and background colors.
Learn more
Specifications
Browser support
- Chrome 96 Released on 2021-11-15
- Chrome Android 96 Released on 2021-11-15
- Edge 96 Released on 2021-11-19
- Firefox 101 Released on 2022-05-31
- Firefox for Android 101 Released on 2022-05-31
- Safari 14.1 Released on 2021-04-26
- Safari on iOS 14.5 Released on 2021-04-26
Developer signals
- State of HTML 2024: accessibility/accessibility_techniques question
- State of HTML 2023: accessibility/accessibility_techniques question
- State of CSS 2024: features/all_features question
Usage (according to Chrome Platform Status)
~21.490% of page loads. More data at chromestatus.
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist