Intent to Prototype: CSS contrast-color()

51 views
Skip to first unread message

Rune Lillesveen

unread,
Jan 20, 2026, 5:22:41 AM (21 hours ago) Jan 20
to blink-dev
Contact emails
fut...@chromium.org

Specification
https://drafts.csswg.org/css-color-5/#contrast-color

Summary
This function is used to meet contrast requirements for accessibility. The contrast-color() function can be used anywhere in CSS where a color value is expected. It takes a color value argument, and returns either 'black' or 'white' depending on which of them gives the highest contrast against the color argument.

Blink component
Blink>CSS

Web Feature ID
Missing feature

Motivation
This feature will make it easier for authors to meet contrast requirements for accessibility. The feature is already shipped in the two other major engines.

Initial public proposal
No information provided

Requires code in //chrome?
False

Tracking bug
https://crbug.com/40142548

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/4841046007742464?gate=5194516850147328

This intent message was generated by Chrome Platform Status.

--
Rune Lillesveen

Reply all
Reply to author
Forward
0 new messages