Waf@dataare.cool: Is there a way to

Thu, 09 Apr 2026 11:55:09 +0000

Is there a way to select the highest contrast rating between two colours based on a third colour using entirely HTML+CSS?

My specific use case is to select white or black foreground text based off a varying background colour.

JavaScript is not what I'm looking for here. And my familiarity with CSS has so far been dealing with transformations, and everything that was in CSS2 (I'm feeling old writing that). #wcag #accessability #lazyWeb