Building an accessible color palette
Changing a color from one hue to another could change its visual weight and contrast—even when designers chose the same step in the scale. Pipedrive’s palette had grown without consistent relationships between colors, making those choices difficult to predict.
I led a redesign of the palette, defining the contrast requirements for backgrounds, interface elements, and text before choosing individual colors. I then mapped the new scales to our existing design tokens to support light and dark themes.
Problem
A palette that grew without a system
My audit found missing steps across color families, uneven contrast, and colors that appeared to carry different weight at equivalent steps. White text on step 600 reached a contrast ratio of 5.16:1 in neutral but only 2.32:1 in red. Designers couldn’t reliably switch between hues while preserving the same visual hierarchy.
The base palette also mixed raw colors with their intended uses and theme behavior. Some names described a feature, like a yellow reserved for notes; others described how a color looked when inverted in another theme. Those meanings tied base colors to particular contexts and made them harder to reuse.
The foundation needed consistent scales and a clear separation between the colors themselves and the roles they served.

Contrast targets
Defining contrast before choosing colors
I started by examining how colors were used across the interface. A subtle background behind a card, an icon, and a line of body text each need a different amount of contrast against what surrounds them.
I organized each color family into 10 steps, with ranges assigned to different uses. Multiple values within each range gave designers room to respond to different interface contexts.

The base step targeted a contrast ratio of at least 4.5:1 against white, the minimum the Web Content Accessibility Guidelines (WCAG) set at level AA for normal text. Other targets included 3:1 for icons and other interface elements, and 7:1 for text that needed stronger contrast.
These requirements guided the selection of colors. Accessibility still depended on the foreground and background used together.

Visual weight
Making equivalent steps feel consistent
Meeting contrast targets addressed part of the problem. Equivalent steps also needed to look equally light and strong across hues, so that switching color families would preserve the intended hierarchy.
Familiar color models such as RGB and HSL don’t match how people see color: 2 colors with the same lightness value can look very different in brightness. I compared color spaces designed around human perception and chose OKLCH. It describes a color by lightness, chroma (how vivid it is), and hue, and it keeps blues from drifting toward purple as they get lighter—a shift the older Lab space produces.


Using lightness as the primary variable, I calculated each value from its contrast target and the role its range needed to support. For every step, I balanced the measured contrast against how heavy the color looked next to the same step in other families.

Tokens and theming
Separating colors from their meaning
The resulting palette contains 6 color families with 10 calibrated steps each. Base colors are named by their family and position in the scale. Our existing design tokens carry the meaning of where and how those colors are used.


That separation supports theming: a token keeps its role while referencing different palette values in light and dark themes.

I remapped the existing tokens to the new palette. We also created usage guidelines documenting supported color combinations and token mappings for each theme.

Outcome
Contrast built into the color system
After remapping the tokens, I checked the intended color pairings in components and larger product interfaces. The reviewed pairings met WCAG AA contrast requirements, with no remaining contrast-related issues identified.
These relationships now underpin our light and dark themes. Because equivalent steps now share lightness and contrast targets, switching a color from one family to another at the same step keeps its place in the hierarchy. Designers choose from documented pairings, with interface reviews checking that those pairings are applied correctly.

