Replies: 6 comments
-
Hi @tkeenoy Really great questions! The answers are complicated, I'm going to try to be brief.
I don't see anything unexpected, especially in view of my reply to issue #3 a few days ago. I may have been unclear. Remember that scoring for APCA is "within a certain percentage" depending on if you want to hit rating 4 or 3 etc. And contrast and the sliding scale font weight and size is a far more fluid and flexible paradigm. Taking the
|
Beta Was this translation helpful? Give feedback.
-
Awesome, this clarifies things and helps flag the "false pass" issue. The greater granularity of size/weight also gives a lot more for a designer to work with than before. Rather than taking a whole chunk of stuff of various sizes and weights and slapping a .6 alpha on it and calling it done, I need to be a lot more particular about how and when I apply those modifiers. Great stuff. Edit: realized I didn't answer your question: 14px is the minimum size we normally display. We sometimes use 12px for data visualization labels. |
Beta Was this translation helpful? Give feedback.
-
I have also studied the Material design color recommendations for dark themes and have found them to be quite problematic. For example, the page https://material.io/design/color/dark-theme.html#ui-application contains the following information about the "error color":
The background color on this image is #292929. For #cf6679 on #292929, the SAPC calculator gives an Lc of only 34.9. The most saturated color with the same HSL hue as #cf6679 and an Lc of at least 60 is #ff9eb0, a bright pink. It just seems to be impossible to have red text on a dark or even completely black background with sufficient contrast (in sRGB space). Material colors with a tint designation of "200" are recommended for text on dark backgrounds (see same page as above). I have examined all colors with a designation of "200" from the palettes found at https://material.io/design/color/the-color-system.html against the background color of #292929. Out of the 17 chromatic foreground colors, 10 gave an Lc of at least 60, 7 a lower value. Other color themes/systems besides Material are problematic as well. For example, with GitHub's Primer ANSI color palette (https://github.githubassets.com/app/app/assets/stylesheets/custom/github/checks.scss), only 3 of 6 chromatic text colors give an Lc of at least 60. With the well known Solarized dark color palette (https://ethanschoonover.com/solarized/), all color combinations give an Lc below 60 (highest is just 40.0). |
Beta Was this translation helpful? Give feedback.
-
Hi Joshua @joshuakraemer Yes, pure sRGB red ( In the case of red, it is in part because red is also fairly low luminance, but more importantly because some vision impairments, particularly protanopia, have significant difficulty seeing pure reds. While the red primary in sRGB is actually a red-orange with a dominant wavelength of 611 nm, as it is already at a low luminance, the 65% (ish) perceptual reduction for someone with protanopia makes it very hard to see. THE PROBLEM:WCAG 2.x contrast is actually incorrect, especially for dark color pairs, and many inverted colors. APCA fixes these and other issues. For red, here's a comparison: •••••••••••••••••••••••••••••••••••••••••• EXPLAINER•••••••••••••••••••••••••••••••••••••••••• Let’s start with how WCAG 2.x handles red.Keeping in mind that a protan sees sRGB red at ~quarter the luminance, or perceptually 65% darker. WCAG 2.x says this is a pass:Gross. And nearly invisible for the protan: Not much better with normal polarity: And still nearly invisible for protan: But if we make the text LIGHT instead of DARK then we can read far better…. ….. Except ….. WCAG 2.x FAILS IT….!And in THIS case, protans actually get BETTER contrast…. … DESPITE failing WCAG! Here we just barely fail the 4.5 level… ….WCAG 2.x fails it for normal text. Compare THIS FAIL to the “passing” 4.53 example at top as processed for CVD simulation:
And again, here protans are actually helped, but with colors that WCAG FAILS. The moral of this story: WCAG 2 harms protans (and others) with both false passes and false fails. •••••••••••••••••••••• SAPC G Series•••••••••••••••••••••• The current APCA does better, these examples were done using the newer G series constants. SAPC G-Series Exponents for APCASame exact color pairs as used above. SAPC-G reports lower contrast for lower contrast colors Now let's go the other way, reverse light text on dark, but now the darker color is the red. This example at the same Lc value as the red on black: WCAG 2 reported this as 2.4:1 We have it at Lc 32.5, the same as the darker reverse text. Here’s a side by side compare, Lc -32.5 top row, Lc -32.5 bottom row: And finally, the color pair WCAG 2 reported as 4.43 to 1 is reported by the G series as Lc -71.3 which WCAG 2 should call "about 6 to 1" instead of failing it. And that concludes today’s edition of I have two gists that get into the comparison further: Part I:Orange You Wondering About Contrast? Answering some contrast questions, and demonstrating a real solution to the infamous orange conundrum. Part II:The Lighter Side of Dark Backgrounds An article comparing some parts of APCA with the old WCAG 2 contrast methods. Thank you! Andy |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi Joshua @joshuakraemer thanks for commenting
Blue refracts at a different angle than red, and so focuses at a different point. S cones are not in the foveal center vision, and are very sparse in the peripheral areas. The blue resolution is a fraction of red/green.
YES. Banned completely, they are not accessible, and problematic even for normal vision. If either red or blue are to be used on a dark background, green needs to be added to boost the luminance.
No.
No, it does not — while it may seem that way in the very narrow use case you are using as an example, there are many more use cases where that is not true. It is definitely not true of the overall page is brighter for example. SEE: APCA is doing a number of compromises to allow for the many possible variations, AND the many various impairment types. This is about accessibility, and as you can see below, the #ff3737 on #000000 is nearly invisible to someone with protanopia, which is 1% of the population. It is certainly easy to look at these edge cases and see some minor discrepancies, this is due to the number of compromises needed to make a useful general standard. Pure blue is absolutely prohibited as the brightest of two colors, as this is inaccessible for all vision types. Pure red is also prohibited as the brightest of two colors as there are a number of use cases and impairments where accessibility is detrimental. Yes, if the entire page is black, and you are in a dark enough environment, and there are no bright elements on the page, then pure red on black is somewhat readable IF the font is very large and bold. Except for protanopia, for whom it is nearly invisible. It is even worse for the newer color spaces like Rec 2020, where the red primary is literally invisible to protanopia. You have young eyes — you are not going to be able to judge adequate contrast just by looking at it. Contrast sensitivity increases for the first twenty years of life... and after age 40 decreases. The APCA guidelines are not targeted at people with healthy perfect vision between the ages of 20 and 40. It is targeted at all sighted users. BUT ALSO: critical contrast for fluent readability is a minimum of ten times the legibility JND. When we are talking about minimum contrast for text for fluent readability, pure red and of course pure blue are absolutely prohibited as the brightest of two colors. Even for normal vision, pure red on black with a small and thin font, is not nearly enough contrast for fluent readability. I hope this clarifies the basis for these guidelines. |
Beta Was this translation helpful? Give feedback.
-
I'm doing some evaluation of Material Design's standards around high-emphasis and medium-emphasis text. If you're unfamiliar, the spec uses rgba to allow the same css styling to scale along with background colors. e.g. a white text with .87 opacity will render as a lighter grey as the background color lightens. This helps developers use one style across many backgrounds and still maintain contrast (up to a point).
Under WCAG 2.0, the medium-emphasis style (.6 opacity) would pass AA or AAA for small text, but it pretty marginal under the newer proposed specs. I've attached a graphic showing findings. Each panel has:
Material Design style | WCAG 2.0 ratings (small, large), APCA%
Text color (including opacity) | Background color | renders-as color (actual output of computed rgba rendered on background)
Recommended usage guidelines
(note that "all" is misleading - this check is only intended for the scope of body text styles, so we're not talking about weights <300)
I was surprised to see that the Medium Emphasis styles (right column) that passed AA or AAA under WCAG 2.0 are more marginal under the proposed new spec. My understanding was that light text on dark backgrounds was being under-rated in the old spec, but these findings seem counter to that idea.
So I guess the "issue" is more of a question: am I doing these test correctly, and are the results as expected?
Beta Was this translation helpful? Give feedback.
All reactions