Colour tables & multiple palettes
How RWDS supports different accent families without losing its identity, and how to generate an accessible colour table.
One identity, several accents
RWDS is not tied to rumahl green. A project can use blue, violet or amber and still be an RWDS surface. What makes the system recognisable is the role model, typography, spacing, radii, surfaces and motion — not a single hue. The neutral surfaces can also be tinted from the seed hue, with a strength control.
A colour table changes the accent family, the neutral tint and the contrast colour on accent surfaces. It does not change layout, type, spacing or motion. Changing those would be a different design system, not a palette.
Generate a table
The Color Table Generator turns a seed colour into a systematic 50–950 scale, tinted neutral surfaces, semantic light and dark roles, contrast readings and copy-ready CSS.
- Open the generator: /design/color
- Enter a hex value or pick a colour.
- Compare the light and dark previews.
- Check the contrast column before copying the CSS.
Scale rules
- The seed is the 500 step.
- Lighter steps move toward the paper tone; darker steps move toward ink.
- Hue stays fixed; chroma is reduced at the extremes so the scale does not turn neon or muddy.
- Neutral surfaces are derived from the same hue with a low chroma. The tint slider controls how much hue enters the background.
- Each step lists its contrast against the generated light and dark backgrounds.
- Light accent roles are chosen from steps that meet normal-text contrast; dark roles are chosen from the lighter end.
Semantic roles
| Token | Role | How it is chosen |
|---|---|---|
| --accent | Primary action and brand signal | A step that meets contrast with the theme canvas |
| --accent-secondary | Hover, links and quiet emphasis | A neighbouring step in the same scale |
| --accent-contrast | Text on accent surfaces | White or ink, whichever contrasts more |
| --background / --surface | Page and content surfaces | Tinted neutrals from the seed hue and tint strength |
| --foreground / --foreground-muted | Text roles | Tinted text roles that keep the same semantic meaning |
Contrast
The generator marks 4.5:1 or higher as passing for normal text. Contrast is checked against the generated light and dark backgrounds. Accent roles that cannot reach that threshold are a warning: choose a darker or lighter seed or reduce the tint rather than forcing the role.
If a seed cannot produce an accessible accent on the chosen canvas, fix the seed or the canvas. Do not hard-code a text colour to compensate.
CSS output
Paste the generated variables into the project theme. The output overrides the accent family and the neutral surfaces; typography, spacing, radii and motion stay unchanged.
:root {
--accent: #17543a;
--accent-secondary: #28694c;
--accent-contrast: #ffffff;
--background: #e8ece7;
--surface: #f8faf7;
--foreground: #18201c;
--border: #d3dbd1;
}
[data-theme="dark"] {
--accent: #52896e;
--accent-secondary: #28694c;
--accent-contrast: #0f1512;
--background: #0f1512;
--surface: #161f1a;
--foreground: #eef4f0;
--border: #30443a;
}
Boundary with RUI
RUI does not use the RWDS accent table. It has its own token namespace, materials and theme model. Do not apply an RWDS palette to RUI components or the other way around.
Need the implementation? Open the design resources or the source repository.