Problem

A palette designed for print was conflicting with our mandate to meet WCAG AA standards.

Team

  • UX Designer (me)
  • Web developer
  • Brand specialist

My role

I was tasked with coming up with an accessible palette Brand could agree to

Deliverables

  • Revised palette
  • Design System updates
  • Documentation on accessible combos

We had a palette, but...

At the time it was a barebones set of 19 colors. This was primarily a result of our partners in Brand wanting to keep consistency across print materials.


Our previous palette
The palette offered very few combinations with sufficient contrast

The palette was tying our hands.

In digital channels we had committed to meeting WCAG 2.0 AA for all of our work. This palette gave us very few combinations that would meet contrast requirements.

For example, the primary colors we used for text were Gray Dark and Gray. Gray could only be used with proper contrast on white.

Gray Dark shows how our palette was inconsistent - you could use it on Red Lightest, but not Blue Lightest.

And so designers would cheat, fudging the color values, or introducing completely new colors (guilty!).


I took it upon myself to try to find a solution we could all live with.

The first thing I did was research what other companies do, and found most create color ramps, giving several swatches from very dark to very light.

My first thought was, "my design tool has options for hue, saturation and brightness, I'll just use those!". Unfortunately those color systems are not "perceptually uniform", meaning even if the saturation and brightness are the same, the contrast won't be.

To make the swatches consistent, I would have to use color spaces like CIELAB or LCH. In those color spaces, different backgrounds with the same brightness and saturation WILL have the same contrast with their text.


Example of "perceptually uniform" colors
Palette creation tool

I asked one of my developer friends for help.

Just about every article you read about color systems will talk about how they created a custom tool to pick their colors, but they never seem to release the tool publicly!

Luckily the developer I was working with was able to track one down and create his own version.

This tool he provided allowed me to start with a base color and define a set of lightness values. It would then generate bands of swatches that meet the criteria I set. Once I had this tool, I was able to move quickly.


The revised palette would give us a lot more flexibility.

We had upped the palette from 19 swatches to 66, and the perceptually uniform colors meant you could say things like, "on white, you can use ANY color with a value of 600 or greater".

Accessible color combos increased by over 400%



Once I had my palette, I had to talk to our Brand area.

They were the keepers of our current palette, and had previously advocated for fewer colors.

One key concession I made was not changing our two primary brand colors, Amfam Red and Amfam Blue. I tried to use the other existing colors as much as possible too. (I even snuck in an Easter egg - the Error color is based on the brand color of one of our competitors.)

When I explained the difficulties with the existing palette and the benefits of the proposed version, they were comfortable agreeing to the new palette, at least in digital channels.

Detail of conversion chart

Now we had to get designers and developers to update their work.

I updated our Design System file in Figma to automatically update as many colors as possible. I also created a conversion chart to show which colors should be substituted going forward.

My developer friend was able to create a file that would convert existing web apps to the new color palette as well.

Since we introduced the new palette, color is used more consistently, and our accessibility scans don't turn up the issues with color we previously had.