Contrast / Footer

URL: /
Criterion: 1.4.3 Contrast (Minimum) (AA)

Color contrast is important for perceivability of the page elements, but it is also important for distinguishing different types of information.

In Indico’s footer, we have the following situation:

image

In this case, both the “Powered by” text, and the “v3.3-pre” fail the minimum contrast success criterion. Changing the color to the minimum value that satisfies the SC, however, results in both pieces of text having the exact same color. This satisfies the SC, but we lose some information in the process.

Achieving the kind of contrast between the “Powered by” and the version number, however, is quite challenging. Firstly, the minimum color value to achieve satisfactory contrast is #757575, which is already quite dark. This value must map to the lightest part of the text, the version number. The rest of the text then needs to be a lot darker to support the idea of having two shades. The darkest color I’ve been planning to use thus far is #454545, but this doesn’t quite work in this case:

image

This is partly due to the text size as well (the smaller the text size, the less we can see these differences). Now this particular text is already below the minimum recommended text size, but not by much.

What we can do here, though, is to also make the text bold. Provided that the text adheres to the minimum text size recommendation (it doesn’t now, but it will), then making it bold reduces the contrast requirement as well, and we can therefore use a lighter shade and a contrast ratio of only 3:1.

image

For this particular case, I intend to use the general text color #646464 in the footer, and #919191 for the version number with a bold typeface.

+1 for the bold variant.

3 posts were merged into an existing topic: Contrast / category listings

Does a11y matter for this? It’s unimportant information. I’d even go as far and consider excluding it from screenreaders etc since it’ll just be (quite literally) noise that’s not relevant for someone using Indico…

A good mental model for a11y is that you should assume anything you do/see should be doable and perceivable to anyone with any kind of condition in any kind of situation. (This includes people who are not technically disabled. For instance, I find a lot of the smaller text on the Indico UI a bit hard to read.)

There are, of course, exceptions. You don’t expect a blind person to be able to use a tool for creating visual content, for instance. But those are exceptions.

I think that sounds reasonable. If you can remove something without impacting usability, that would be best.