Kristjan Pikk

Kristjan Pikk

Product designer

Back to portfolio

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.

Original palette with uneven scale steps, mixed semantic names, and inconsistent contrast ratios across hues.
The original palette: some families skipped steps, some names described a use or theme instead of a color, and contrast at the same step varied widely by hue.

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.

Color scale of 10 steps assigning lighter values to subtle backgrounds, middle values to decoration, and darker values to text and icons.

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.

Contrast targets across the palette: 3:1 at step 500, 4.5:1 at the base step 600, and 7:1 at step 800.
Each target sits at the same step in every color family, so a step’s contrast no longer depends on its hue.

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.

Color-space models shown as a cube, a cylinder, and a perceptually uniform color space.
Blue-to-white gradients comparing Lab, which shifts toward purple, with OKLab, which maintains a more consistent blue hue.
The same blue-to-white gradient in Lab and in OKLab, the space behind OKLCH. Lab drifts toward purple, while OKLab keeps a more consistent blue.

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.

Light and dark neutral scales with calibrated lightness and contrast ratios for each step.

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.

Light-theme palette with 10 calibrated steps in neutral, red, yellow, green, blue, and purple, including accessible text pairings.
Dark-theme palette using the same 6 color families and 10 steps, with lightness adapted to dark backgrounds.

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

Theme documentation mapping semantic design tokens to light and dark interface colors.

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

Color-combination guidelines showing accessible pairings across shades and with neutral text.

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.

Pipedrive Deals pipeline view using the revised palette for navigation, deal cards, status indicators, and actions.
Deals pipeline view in the new palette: green, red, and yellow status indicators, plus the tints on overdue and won deals, all come from the same calibrated scales.
Back to portfolio