W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > January to March 2019

Re: Color contrast principle

From: Alastair Campbell <acampbell@nomensa.com>
Date: Thu, 17 Jan 2019 10:56:29 +0000
To: "WCAG list (w3c-wai-gl@w3.org)" <w3c-wai-gl@w3.org>
Message-ID: <65B278A2-4AF5-48F5-8F7C-AD8CC315CA10@nomensa.com>
David wrote:
> If the grey outline is merged with the dark blue background wouldn't the contrast be between the input and the dark gray background.

As we’re dealing with luminance, most contrasting colour combinations are a dark colour vs a light colour. A colour in the middle is very likely to fall into the dark or light side, so be ‘subsumed’ into one side or the other. (Insert star-wars joke here.)

it is possible to have three contrasting colours, light, middle and dark, and if that is the case then great, the silver could contrast with both and could be taken as the measure.

What we’re saying is that if that 3-way contrast isn’t the case, *and* it does not impact understanding the component, then you can consider it part of the closest match (light/dark).

Logically, if the inner and outer colour do contrast, then the middle colour either will either:

  *   contrast with both (unlikely but good), or
  *   contrast with one side (be subsumed into the non-contrasting side)
  *   contrast with neither (be ignored).

That last one might look worrying, but could be considered to essentially be like a gradient. If that is thick enough to interfere with the comprehension of the control, it would be an issue. I’m struggling to think of an example of that though. If the outer and inner colours contrast enough, that should be ok. If it is particularly thick (e.g. a border between maps segments), it is likely to be considered its own graphical object.

JF wrote:
> I think the word we may be searching for is subsume

Works for me, that would make it:

If components use several colors, any color which does not interfere with identifying the component can be ignored for the purpose of measuring contrast ratio. For example, a 3D drop-shadow on an input, or a dark border line between contrasting [backgrounds is considered to be subsumed into the color closest in brightness (luminance)].

The following example shows an input that has a light background on the inside and a dark background around it. The input also has a dark grey border which [is considered to be subsumed] into the dark background. The border does not interfere with identifying the component, so the contrast ratio is taken between the white background and dark blue background.

Having agreed the last update to this understanding doc, we’ll publish that first and this change will go into the next updates for non-text contrast, I’ll start a new branch/PR for it.

Received on Thursday, 17 January 2019 10:56:53 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 21:08:29 UTC