Legend Row
ChartsChart legends with five entries that must survive being 12px squares.
Click a swatch to copy its hex.
Do not use this for
Full-bleed backgrounds — every colour is mid-weight.
What was measured
- Closest neighbours
- ΔE00 46.2
- how alike two adjacent swatches look
- Darkest to lightest
- 5.12:1
- WCAG contrast across the set
- Lightness covered
- 40 pts
- of OKLCH lightness, 0–100
- Under colour blindness
- ΔE00 22.5
- worst under deuteranopia
Every pair here survives protanopia, deuteranopia and tritanopia, so these five can stand for five different things.
A suggested mapping · derived, then measured
Five colours are not an interface, so this is an offer rather than a token set. It does not clear WCAG AA on secondary text and the accent — stated here rather than left for you to discover.
/* Legend Row — Chart legends with five entries that must survive being 12px squares. */
:root {
--palette-1: #324496;
--palette-2: #786a03;
--palette-3: #eb7e91;
--palette-4: #11dcf6;
--palette-5: #cccd06;
/* A suggested mapping, not a token set. It falls short of WCAG AA on secondary text and the accent — fix that before shipping. */
--bg: #cccd06;
--text: #324496; /* 5.12:1 on --bg */
--muted: #786a03; /* 3.19:1 on --bg */
--accent: #11dcf6; /* 1.02:1 on --bg */
--accent-text: #111111;
}Tailwind
// tailwind.config — Legend Row
export default {
theme: {
extend: {
colors: {
legendrow: {
100: "#324496",
200: "#786a03",
300: "#eb7e91",
400: "#11dcf6",
500: "#cccd06",
},
},
},
},
};For your coding agent · printed from the colours
Use the Legend Row palette: #324496, #786A03, #EB7E91, #11DCF6, #CCCD06. It is for this: Chart legends with five entries that must survive being 12px squares. Map it as ground #CCCD06, body text #324496, secondary text #786A03, and one accent #11DCF6 with #111111 printed on it. That mapping does not clear WCAG AA on secondary text and the accent — body 5.12:1, secondary 3.19:1, accent 1.02:1. Fix the named role against the ground before shipping; do not ship the pair as given. Do not use it for: Full-bleed backgrounds — every colour is mid-weight. Do not add a sixth colour, do not tint the greys toward a second hue, and do not carry meaning on hue alone — once colour vision is taken away the closest two of these sit only 22.5 apart on the CIEDE2000 scale, so pair every coloured state with a label or an icon.
How this palette was built · no hex was chosen by hand
The catalog states a recipe — series from hue 100 — and the five colours are derived from it in OKLCH, where a step of lightness is a step your eye agrees with rather than one the hex numbers agree with. That is why the numbers above are properties of this palette rather than claims about it.