UX Collective

We believe designers are thinkers as much as they are makers. https://linktr.ee/uxc

Follow publication

Member-only story

Getting WCAG color contrast right

Lukas Oppermann
UX Collective
Published in
9 min readOct 27, 2022

Cover illustration showing abstract mountains and a sunrise.

What is WCAG

Web Content Accessibility Guidelines (WCAG) define rules, that make your product accessible to people with disabilities.¹*

The WCAG is an open standard developed by the w3c together with individuals and orgs around the world. (Like all other w3c standards).

* Being general guidelines following the WCAG won’t make your product 100% accessible for everyone.

Why should I care about WCAG 2.1?

The WCAG 2.1² (3.0³ is still a draft) is seen as the most accurate requirement to achieve an accessible product. So much so, that governments all over the world legally require it. This happens through laws like Section 508⁴ or the European Accessibility Act (EAA)⁵.

This means you need to be WCAG 2.1 compliant if you offer your products to government organisations or if you want to be able to do so in the future.

It also opens your product up to a larger user base. Don’t forget that disabilities can be temporary⁶. For example if your product is used in a hectic environment, let’s say in a food truck or café. A more accessible product will be easier to use for people who are stressed.

Lastly, it is a lot easier and less time consuming to make your product accessible while you build it. Reworking your entire product to fulfil WCAG 2.1 all at once, when you have a customer who requires it is a nightmare.

AA vs. AAA conformance

The W3C defines 3 levels of conformance⁷: A, AA, and AAA. The high level includes all lower levels, so AA also includes A conformance.

Most organisations strive to achieve AA conformance. AA is a good balance between accessibility and a great visual design that fits with your brand. If possible, add a separate theme with partial AAA conformance. For example a high contrast theme. This is especially helpful if you are building a (web) software that is used by people in their daily work.

AAA conformance requires a 7:1 contrast ratios for text, sign language translations for pre-recorded videos and more. But the…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Written by Lukas Oppermann

Product designer with a love for complex problems & data. I post about Figma, design tokens, design systems & design related topics. https://lukasoppermann.com

Responses (5)

Write a response

So many goodies in here.

I would say “tonal” buttons that have text with a 4.5:1 contrast with its surface and a background that doesn’t “interfere with the distinction of the component” is the only thing I’m iffy on. I’ve had some people say that…

--

Hi Lucas,
Regarding "you need to be WCAG 2.1 compliant if you offer your products to government organisations"
Actually the USAB 508 rules recite WCAG 2.0, not 2.1. and the 508 has a number of important exceptions, including "commercial availability"…

--

(L1 + 0.05) / (L2 + 0.05) = contrast ratio

Do we know why is the value of 0.05 added to the both luminance amounts?

--