Re: [csswg-drafts] [css-color-6] It should be possible to specify the contrast algorithm for color-contrast() (#7356)

> _...A 4.5:1 contrast ratio is sufficient or better for all cases apart..._ 

In terms of **_actual_** accessibility, 4.5:1 is grossly insufficient for a vast portion of the visual range, most especially dark colors and "dark mode". (And oddly, 4.5:1 is more than needed for some other use cases and low spatial frequency elements).

As I've mentioned elsewhere, a numerical value can be more useful. Perhaps a single default (and if it is WCAG 2 that default should arguably be 7:1) but rather that accept only a few levels, a numerical value is beneficial. In the case of the WCAG 2 algorithm, that would allow a designer to specify 10:1, which is a more ideal level for body text.

As I mentioned in [this post in 7359 ](https://github.com/w3c/csswg-drafts/issues/7359#issuecomment-1208744612) combining an identifier with a contrast value would allow unambiguous contrast settings.

-- 
GitHub Notification of comment by Myndex
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7356#issuecomment-1212612152 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 12 August 2022 00:19:23 UTC