← Colors in interface design

Using Bureaucracy (#746C8F) in Interface Design: Scale, Buttons and Dark Mode

A working design system from Bureaucracy #746C8F: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.

Bureaucracy (#746C8F) is a medium, muted purple. As an interface color it has a clear personality: it is dark enough to carry white labels, which makes it a natural button and header color. This guide shows how to build a working interface from it: a full scale, every button state, a dark-mode version, a link color that passes, and the CSS to paste in.

A scale built from Bureaucracy

A single color is not enough for an interface. You need lighter steps for surfaces and borders and darker steps for text and hover states. This 50 to 950 scale keeps the hue and saturation of Bureaucracy and moves only the lightness. The step closest to Bureaucracy keeps its exact value.

StepHexContrast on whiteBest text on it
50#F7F6FB1.07:1#111111
100#EBEAF41.19:1#111111
200#DBD8EA1.39:1#111111
300#C2BDD81.81:1#111111
400#A39CBE2.60:1#111111
500#8880A43.70:1#111111
600#746C8F4.90:1#FFFFFF
700#5A53707.22:1#FFFFFF
800#443E5510.16:1#FFFFFF
900#312D3F13.31:1#FFFFFF
950#1B182517.44:1#FFFFFF

Button states

Interactive elements need to look different when you hover, press and disable them, and each state still has to be readable. These values are made from Bureaucracy itself, so the button stays in family.

StateBackgroundLabelLabel contrast
Default#746C8F#FFFFFF4.90:1
Hover#6D6687#FFFFFF5.38:1
Pressed#676080#FFFFFF5.89:1
Disabled#D8D7DD#6B72803.38:1

Disabled controls are exempt from WCAG contrast rules, but they still need to be recognizable, so the label is kept dark enough to read. For keyboard focus, use an outline of Bureaucracy (#746C8F), which reaches 3 to 1 against a white page, the minimum for interface parts.

Dark mode

On a near-black page (#0F1115), Bureaucracy reaches 3.85:1 (AA large). That is not enough for text, so lighten it. Purple Haze (#80789B) is the closest lightness of the same hue that reaches 4.5 to 1.

Links and text

Bureaucracy on white reaches 4.90:1 (AA), so it can be a link and heading color as it is. Links also need a second cue beyond color, such as an underline, because some readers cannot tell the link color from the surrounding text.

Surfaces and borders

Tints of Bureaucracy make quiet surfaces that feel connected to the brand without competing with it. Snow (#F9F9FA) works as a card or page tint, and Bride (#E9E9EC) as a border or divider.

The CSS

CSS variablescss
:root {
  --brand: #746C8F;
  --brand-hover: #6D6687;
  --brand-active: #676080;
  --on-brand: #FFFFFF;
  --brand-surface: #F9F9FA;
  --brand-border: #E9E9EC;
  --brand-text: #746C8F;
  --focus-ring: #746C8F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #80789B;
    --brand-text: #80789B;
  }
}

A short checklist

  1. Use Bureaucracy for the one action you most want people to take.
  2. Put #FFFFFF text on it and check that the ratio stays above 4.5 to 1.
  3. Use the scale for hover, pressed, border and surface colors rather than inventing new ones.
  4. Define a separate dark-mode value and test it on a dark page.
  5. Never use the color as the only signal: add an icon, a label or an underline.