← Colors in interface design

Using La Palma (#428929) in Interface Design: Scale, Buttons and Dark Mode

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

La Palma (#428929) is a medium, moderately saturated green. As an interface color it has a clear personality: it is light enough that dark labels read better than white ones, which makes it better as a surface, a highlight or a data color than as a button. 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 La Palma

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 La Palma and moves only the lightness. The step closest to La Palma keeps its exact value.

StepHexContrast on whiteBest text on it
50#F1FAEE1.06:1#111111
100#DFF2DA1.17:1#111111
200#C5E6BC1.36:1#111111
300#9FD1901.75:1#111111
400#75B5612.45:1#111111
500#539B3C3.43:1#111111
600#4289294.33:1#000000
700#2E68186.75:1#FFFFFF
800#204F0E9.60:1#FFFFFF
900#153A0612.80:1#FFFFFF
950#07210117.11: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 La Palma itself, so the button stays in family.

StateBackgroundLabelLabel contrast
Default#428929#0000004.84:1
Hover#3E8126#FFFFFF4.80:1
Pressed#3A7A24#FFFFFF5.26:1
Disabled#D1DCD0#6B72803.42: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 La Palma (#428929), which reaches 3 to 1 against a white page, the minimum for interface parts.

Dark mode

On a near-black page (#0F1115), La Palma reaches 4.35:1 (AA large). That is not enough for text, so lighten it. La Palma (#458C2C) is the closest lightness of the same hue that reaches 4.5 to 1.

Links and text

La Palma on white reaches only 4.33:1, which is not enough for text. For links and small headings use La Palma (#3F8625), the closest shade that reaches 4.5 to 1, and keep La Palma itself for fills and large display type.

Surfaces and borders

Tints of La Palma make quiet surfaces that feel connected to the brand without competing with it. Snow (#F9FAF8) works as a card or page tint, and Salt (#E6ECE5) as a border or divider.

The CSS

CSS variablescss
:root {
  --brand: #428929;
  --brand-hover: #3E8126;
  --brand-active: #3A7A24;
  --on-brand: #000000;
  --brand-surface: #F9FAF8;
  --brand-border: #E6ECE5;
  --brand-text: #3F8625;
  --focus-ring: #428929;
}

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

A short checklist

  1. Use La Palma for the one action you most want people to take.
  2. Put #000000 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.