Wada Color Palettes
Sanzo Wada's A Dictionary of Color Combinations (1933) is a famous, hand-curated set of 348 combinations of 2, 3 or 4 colors. Designers love it because every combination was chosen by eye rather than generated by a formula. This skill gives you the full dataset plus a script that turns any combination into production-ready light and dark mode website colors that pass WCAG contrast.
Everything runs through one stdlib-only Python script — no installs:
W="python3 <skill-dir>/scripts/wada.py"
Workflow
The goal is to make choosing easy: lead with a few ready-made suggestions the person can react to, each shown in light and dark mode, rather than asking them to browse 348 palettes or answer a questionnaire.
1. Suggest straight away
Turn whatever they told you (business type, mood words, audience, brand hex) into a
short brief and run suggest. Don't ask clarifying questions first — a vague brief
still gets good, varied picks, and reacting to options is easier than describing taste.
$W suggest "cozy coffee shop website"
$W suggest "fintech dashboard, trustworthy, brand #2a6f97"
$W suggest "kids learning app, playful" --page 2 # 3 more, different options
$W suggest "wedding photographer" --size 3 # only 3-color palettes
It returns 3 options that are deliberately different from each other (no shared
colors, visibly different main color), ranked with the best fit marked
recommended. For each one you get a "why" line, the mood, and the light + dark
background / text / primary / accent colors. It also writes
wada-suggestions.html, which shows each option as a small website with light and
dark side by side. Open it for them (open wada-suggestions.html on macOS) or give
them the full path.
The "Understood as" line shows which words it recognised. If it says nothing was recognised, add mood words to the brief yourself (see the mapping below) and run it again.
2. Present the options so they're easy to compare
Reply with a compact table, then your recommendation in one sentence, then a simple question. For example:
| Palette | Feel | Light mode (bg / text / primary) | Dark mode (bg / text / primary) | |
|---|---|---|---|---|
| 1 ⭐ | #113 Seashell Pink + Vandyke Brown | warm, earthy, soft | #fbf5f3 / #4b3317 / #4b3317 | #231c16 / #fdd4bd / #fdd4bd |
| 2 | #207 Sudan Brown + Glaucous Green + Black | earthy, strong contrast | … | … |
| 3 | #26 Golden Yellow + Pale Raw Umber | warm, harmonious | … | … |
I'd go with 1: espresso brown and a soft peach feel cozy without being dark, and it flips nicely to a deep-brown dark mode. Preview:
<path>. Pick 1–3, say "more" for new options, or tell me what to change (warmer, bolder, must include our green…).
Keep the "feel" in plain words. If they say "more", use --page 2. If they want to
adjust ("warmer", "less pink"), add those words to the brief and run suggest again.
Mood words suggest understands
It recognises business types (coffee, bakery, spa, yoga, tech, saas, fintech, law,
portfolio, fashion, luxury, kids, wedding, eco, gaming, ...) and feelings (cozy,
calm, playful, elegant, bold, moody, fresh, minimal, vintage, japanese, zen, ...),
plus any brand hex like #2a6f97. It looks for palettes that contain a close match
to the hex.
Browsing by hand (when they want to explore)
$W tags # mood tags, counts, plain meaning
$W list --tags earthy,soft --limit 15 # filter (all tags must match)
$W search "#2a6f97" # nearest Wada colors to a hex + their palettes
$W search blue # colors by name
$W gallery -o wada-gallery.html # all 348, with mood filters + light/dark toggle
Tag definitions are in references/tags.md, and every palette is listed in
references/catalog.md.
3. Preview specific palettes (optional)
If they ask about particular palette numbers (e.g. ones they saw in the gallery), render them in the same light + dark layout used for suggestions:
$W preview 12 87 250 -o wada-preview.html # light + dark by default
Then open it, or give them the path.
4. Once they pick: generate tokens (light + dark together)
$W tokens 87 # CSS custom properties, light + dark (default)
$W tokens 87 --format tailwind # CSS vars + tailwind colors mapping
$W tokens 87 --format scss # $theme-light / $theme-dark maps
$W tokens 87 --format json # roles, sources, contrast, notes for both themes
$W tokens 87 --mode light # only one theme if they really want that
The CSS output follows the visitor's OS setting via prefers-color-scheme and also
supports a manual toggle with <html data-theme="dark"> / "light". Write the
output into the project's stylesheet (or a new colors.css) rather than only
pasting it in chat.
Each theme provides these roles: background, surface, text, primary,
on-primary, link, accent, plus the raw Wada colors as --wada-<name>.
5. Explain honestly
The script labels every role with its source. Pass the important bits on:
- Wada's colors are mostly mid-tones. Page backgrounds and body text usually have to be derived (a pale tint / deep shade of a palette color) so text is readable. Say which roles are straight from the book and which are derived — that's the honest answer, and users care about authenticity.
- Body text always reaches ≥ 4.5:1 (it aims for 7:1); links ≥ 4.5:1; the primary
(buttons) stands out from the background at ≥ 3:1, in both modes. Relay any
note:lines, e.g. "accent is decorative only" means don't use it for text. - Credit the source: A Dictionary of Color Combinations, Sanzo Wada; data from mattdesl/dictionary-of-colour-combinations (MIT). The generated files already include this in a comment — keep it.
For applying the tokens to real components (buttons, cards, focus rings, a theme
toggle) see references/web-usage.md.
Tips
- If the user gives a brand color,
search "#hex"first: a ΔE under ~5 means a Wada color is practically the same; use palettes containing it. If nothing is close, keep their brand color asprimaryand borrow the rest from a Wada palette whose other colors complement it — say you're doing that. - 2-color palettes give minimal, confident looks; 4-color palettes suit illustration-heavy or playful sites. Don't use every color at full strength — one dominant, one supporting, the rest as accents (roughly 60/30/10).
- Palette numbers are stable (1–348, same as the book's numbering), so users can look them up in the printed book or at sanzo-wada.dmbk.io.