The palette is the raw material of every colour in Beehexa: six scales of twelve steps, each tuned for light and dark, and a translucent copy of graphite. Products never use it directly. It feeds the role tokens, which is why a button keeps its contrast in both themes.
The palette feeds the role tokens. Products use the role tokens, never a palette step directly. Hover a swatch to see its token name.
What each scale is for
| Scale | For | Never for |
|---|---|---|
| Graphite | Everything without a meaning: text, icons, lines, surfaces, the primary button | — |
| Yellow | The brand: logo, current-page indicator, highlights, brand notes | Text, buttons, warnings |
| Blue | Info, links, the focus ring | Decoration |
| Green | Success | Anything else |
| Orange | Warning | Anything else |
| Red | Danger | Anything else |
There is no purple, pink or teal. Charts use the same scales. Before giving a chart colours of its own, talk to the design system team.
What each step is for
Every step has one job, the same in every scale.
- Steps 1–2: page and surface backgrounds.
- Steps 3–5: component backgrounds at rest, on hover and when pressed or selected.
- Steps 6–8: borders and dividers, from subtle to strong.
- Steps 9–10: solid fills, such as a button, and their hover.
- Steps 11–12: text and icons. 11 is secondary, 12 is the default.
Graphite carries the neutral text, so its dark end has three text levels instead of two: 12 default, 11 secondary, 10 tertiary. Step 9 is the edge of a control and step 8 is disabled text.
Yellow is the one exception: its brand fill is step 7, the brand yellow, with graphite text on top. Products don’t use yellow for other fills or for text.
Light and dark
Every step has a light and a dark value under the same name.
color.graphite.12 is the text colour in both themes. The role tokens switch on their own, so a screen never picks a dark colour by hand. In dark, the solid fills (steps 9 and 10) are lighter than in light, so the text on them is dark: use text.on-bold.
Translucent graphite
color.graphite-alpha has the same twelve steps as graphite, as translucent black in light and white in dark. Laid over the page, step 3 looks like graphite 3; laid over a grey card, it darkens the card by the same amount. Below, each translucent step sits next to its solid step, on a checkerboard so the see-through part shows: black at the percentage shown in light, white in dark.
color.graphitecolor.graphite-alphacolor.graphitecolor.graphite-alphaThe same step on different surfaces:
It exists for one job: the hover and pressed fills of elements with no fill at rest, such as rows, menu items and Subtle buttons, which can sit on any surface (Interaction states, rule 2). Like the other scales, products reach it only through role tokens. The build checks that each step over graphite 1 matches its solid step.
Contrast you can count on
In both themes:
- In blue, green, orange and red, text on a solid fill (steps 9 and 10) reaches 4.5:1 with
text.on-bold: white in light, dark in dark. - Step 11 text reaches 4.5:1 on every background it is paired with.
- In graphite, steps 10, 11 and 12 all reach 4.5:1 as text; step 9 reaches 3:1 as the edge of a control.
See Accessibility for the pairs.