Using Clover (#008F00) in Interface Design: Scale, Buttons and Dark Mode
A working design system from Clover #008F00: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.
Clover (#008F00) is a medium, 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 Clover
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 Clover and moves only the lightness. The step closest to Clover keeps its exact value.
| Step | Hex | Contrast on white | Best text on it |
|---|---|---|---|
| 50 | #EEFBED | 1.06:1 | #111111 |
| 100 | #DAF4D7 | 1.17:1 | #111111 |
| 200 | #BAEAB6 | 1.35:1 | #111111 |
| 300 | #8CD786 | 1.72:1 | #111111 |
| 400 | #58BC51 | 2.40:1 | #111111 |
| 500 | #27A123 | 3.38:1 | #111111 |
| 600 | #008F00 | 4.26:1 | #000000 |
| 700 | #116B0F | 6.70:1 | #FFFFFF |
| 800 | #075105 | 9.59:1 | #FFFFFF |
| 900 | #023C01 | 12.73:1 | #FFFFFF |
| 950 | #002300 | 16.92: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 Clover itself, so the button stays in family.
| State | Background | Label | Label contrast |
|---|---|---|---|
| Default | #008F00 | #000000 | 4.92:1 |
| Hover | #008700 | #FFFFFF | 4.70:1 |
| Pressed | #008000 | #FFFFFF | 5.13:1 |
| Disabled | #CEDDCE | #6B7280 | 3.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 Clover (#008F00), which reaches 3 to 1 against a white page, the minimum for interface parts.
Dark mode
On a near-black page (#0F1115), Clover reaches 4.43:1 (AA large). That is not enough for text, so lighten it. Clover (#0A9208) is the closest lightness of the same hue that reaches 4.5 to 1.
Links and text
Clover on white reaches only 4.26:1, which is not enough for text. For links and small headings use Fine Pine (#198716), the closest shade that reaches 4.5 to 1, and keep Clover itself for fills and large display type.
Surfaces and borders
Tints of Clover make quiet surfaces that feel connected to the brand without competing with it. Snow (#F8FAF8) works as a card or page tint, and Salt (#E5ECE5) as a border or divider.
The CSS
:root {
--brand: #008F00;
--brand-hover: #008700;
--brand-active: #008000;
--on-brand: #000000;
--brand-surface: #F8FAF8;
--brand-border: #E5ECE5;
--brand-text: #198716;
--focus-ring: #008F00;
}
@media (prefers-color-scheme: dark) {
:root {
--brand: #0A9208;
--brand-text: #0A9208;
}
}A short checklist
- Use Clover for the one action you most want people to take.
- Put #000000 text on it and check that the ratio stays above 4.5 to 1.
- Use the scale for hover, pressed, border and surface colors rather than inventing new ones.
- Define a separate dark-mode value and test it on a dark page.
- Never use the color as the only signal: add an icon, a label or an underline.