Using Orion Nebula (#A55AF4) in Interface Design: Scale, Buttons and Dark Mode
A working design system from Orion Nebula #A55AF4: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.
Orion Nebula (#A55AF4) is a medium, vivid purple. 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 Orion Nebula
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 Orion Nebula and moves only the lightness. The step closest to Orion Nebula keeps its exact value.
| Step | Hex | Contrast on white | Best text on it |
|---|---|---|---|
| 50 | #F8F5FF | 1.07:1 | #111111 |
| 100 | #EFE6FE | 1.20:1 | #111111 |
| 200 | #E2D2FC | 1.41:1 | #111111 |
| 300 | #CFAFFE | 1.87:1 | #111111 |
| 400 | #B981FD | 2.75:1 | #111111 |
| 500 | #A55AF4 | 3.91:1 | #111111 |
| 600 | #8941D1 | 5.61:1 | #FFFFFF |
| 700 | #6F2FAC | 7.84:1 | #FFFFFF |
| 800 | #552086 | 10.84:1 | #FFFFFF |
| 900 | #3F1466 | 13.96:1 | #FFFFFF |
| 950 | #25063F | 17.84: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 Orion Nebula itself, so the button stays in family.
| State | Background | Label | Label contrast |
|---|---|---|---|
| Default | #A55AF4 | #111111 | 4.82:1 |
| Hover | #9C55E7 | #000000 | 4.86:1 |
| Pressed | #9350DB | #FFFFFF | 4.76:1 |
| Disabled | #E2D4FB | #6B7280 | 3.46: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 Orion Nebula (#A55AF4), which reaches 3 to 1 against a white page, the minimum for interface parts.
Dark mode
On a near-black page (#0F1115), Orion Nebula reaches 4.83:1 (AA). That is enough to use it directly as text, a link or an icon in dark mode.
Links and text
Orion Nebula on white reaches only 3.91:1, which is not enough for text. For links and small headings use Orion Nebula (#994DE6), the closest shade that reaches 4.5 to 1, and keep Orion Nebula itself for fills and large display type.
Surfaces and borders
Tints of Orion Nebula make quiet surfaces that feel connected to the brand without competing with it. Snow (#FBF9FE) works as a card or page tint, and Bunny Tail (#EFE7FD) as a border or divider.
The CSS
:root {
--brand: #A55AF4;
--brand-hover: #9C55E7;
--brand-active: #9350DB;
--on-brand: #111111;
--brand-surface: #FBF9FE;
--brand-border: #EFE7FD;
--brand-text: #994DE6;
--focus-ring: #A55AF4;
}
@media (prefers-color-scheme: dark) {
:root {
--brand: #A55AF4;
--brand-text: #A55AF4;
}
}A short checklist
- Use Orion Nebula 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.