Using Diva Mecha (#EE99EE) in Interface Design: Scale, Buttons and Dark Mode
A working design system from Diva Mecha #EE99EE: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.
Diva Mecha (#EE99EE) is a light, moderately saturated pink. 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 Diva Mecha
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 Diva Mecha and moves only the lightness. The step closest to Diva Mecha keeps its exact value.
| Step | Hex | Contrast on white | Best text on it |
|---|---|---|---|
| 50 | #FEF3FD | 1.07:1 | #111111 |
| 100 | #F9E3F8 | 1.20:1 | #111111 |
| 200 | #F3CCF2 | 1.42:1 | #111111 |
| 300 | #EE99EE | 2.01:1 | #111111 |
| 400 | #CD82CD | 2.73:1 | #111111 |
| 500 | #B363B4 | 3.91:1 | #111111 |
| 600 | #984D99 | 5.44:1 | #FFFFFF |
| 700 | #7B3B7C | 7.61:1 | #FFFFFF |
| 800 | #5F2A5F | 10.58:1 | #FFFFFF |
| 900 | #471D47 | 13.68:1 | #FFFFFF |
| 950 | #2A0D2A | 17.65: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 Diva Mecha itself, so the button stays in family.
| State | Background | Label | Label contrast |
|---|---|---|---|
| Default | #EE99EE | #111111 | 9.37:1 |
| Hover | #E190E1 | #111111 | 8.34:1 |
| Pressed | #D589D5 | #111111 | 7.52:1 |
| Disabled | #F9DFF9 | #6B7280 | 3.90: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 Lavendless (#C977CA), which reaches 3 to 1 against a white page, the minimum for interface parts.
Dark mode
On a near-black page (#0F1115), Diva Mecha reaches 9.38:1 (AAA). That is enough to use it directly as text, a link or an icon in dark mode.
Links and text
Diva Mecha on white reaches only 2.01:1, which is not enough for text. For links and small headings use Bermuda Onion (#A958A9), the closest shade that reaches 4.5 to 1, and keep Diva Mecha itself for fills and large display type.
Surfaces and borders
Tints of Diva Mecha make quiet surfaces that feel connected to the brand without competing with it. Snow (#FEFAFE) works as a card or page tint, and Bunny Tail (#FBEDFB) as a border or divider.
The CSS
:root {
--brand: #EE99EE;
--brand-hover: #E190E1;
--brand-active: #D589D5;
--on-brand: #111111;
--brand-surface: #FEFAFE;
--brand-border: #FBEDFB;
--brand-text: #A958A9;
--focus-ring: #C977CA;
}
@media (prefers-color-scheme: dark) {
:root {
--brand: #EE99EE;
--brand-text: #EE99EE;
}
}A short checklist
- Use Diva Mecha for the one action you most want people to take.
- Put #111111 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.