UX Lift logo

contrast() | CSS-Tricks

CSS contrast() filter adjusts element contrast with percentages or numbers, affecting saturation and lightness; ideal for readability and hover effects, distinct from contrast-color, and supported in modern browsers.

More from CSS Tricks

© 2026. Made in Manchester by Matt Kevan.

Privacy

Cookies

Contact