← Colors in interface design

Using Limoncello (#BFFF00) in Interface Design: Scale, Buttons and Dark Mode

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

Limoncello (#BFFF00) is a very light, vivid 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 Limoncello

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

StepHexContrast on whiteBest text on it
50#F2FBE61.06:1#111111
100#BFFF001.19:1#111111
200#C9E89B1.35:1#111111
300#A7D3521.73:1#111111
400#87B31F2.47:1#111111
500#6F950D3.51:1#111111
600#5C7B0F4.88:1#FFFFFF
700#4863006.86:1#FFFFFF
800#374A0A9.78:1#FFFFFF
900#27370412.84:1#FFFFFF
950#141F0017.13: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 Limoncello itself, so the button stays in family.

StateBackgroundLabelLabel contrast
Default#BFFF00#11111115.75:1
Hover#B4F100#11111113.95:1
Pressed#ABE500#11111112.53:1
Disabled#E9FFCE#6B72804.52: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 Noxious (#79A021), which reaches 3 to 1 against a white page, the minimum for interface parts.

Dark mode

On a near-black page (#0F1115), Limoncello reaches 15.76:1 (AAA). That is enough to use it directly as text, a link or an icon in dark mode.

Links and text

Limoncello on white reaches only 1.19:1, which is not enough for text. For links and small headings use Avocado (#5E8006), the closest shade that reaches 4.5 to 1, and keep Limoncello itself for fills and large display type.

Surfaces and borders

Tints of Limoncello make quiet surfaces that feel connected to the brand without competing with it. Milk (#FCFFF8) works as a card or page tint, and Lit (#F3FFE5) as a border or divider.

The CSS

CSS variablescss
:root {
  --brand: #BFFF00;
  --brand-hover: #B4F100;
  --brand-active: #ABE500;
  --on-brand: #111111;
  --brand-surface: #FCFFF8;
  --brand-border: #F3FFE5;
  --brand-text: #5E8006;
  --focus-ring: #79A021;
}

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

A short checklist

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