A colour system from one colour
Give Claude your brand colour and get a full palette, named shades, and contrast that is measured.
See it work
You give it
Our brand green is #2E9E5B. Can we put white text on it for our buttons?
You get back
Measured: white (#FFFFFF) on #2E9E5B is 3.41:1.
That passes WCAG AA only for large text (24px, or 18.66px bold) and for icons and borders, which need 3:1. Button labels at a normal 14 to 16px need 4.5:1, so this pair fails for them.
Three ways to fix it, in the order I'd try:
1. Keep green as the fill but use a darker step for buttons. Holding the hue and saturation, a lightness of 34% (#27864D) gives 4.56:1 with white. Give it a role token, `--color-action`, and keep #2E9E5B for large areas and illustration.
2. Use dark text on your green. Black on #2E9E5B is 6.16:1. Check it on the real button, because dark text on a mid green can look disabled.
3. Make every label 18.66px bold or larger. It passes at 3:1, but it limits every button you'll ever make.
I'd go with option 1. You keep one filled colour for the one main action per view, and the brand still reads as green.
These figures are for the flat hex values. I'd also measure the rendered button, because opacity, a gradient or a hover overlay change the real pair.
First part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Grows one brand colour into a full palette with greys.
- Names every shade so a developer knows where it goes.
- Checks text against its background so it stays readable.
What's inside
better-colors/CREDITS.mdbetter-colors/LICENSEbetter-colors/SKILL.mdbetter-colors/agents/openai.yamlbetter-colors/color-formats.mdbetter-colors/color-usage.mdbetter-colors/contrast.mdbetter-colors/palette-generation.md- and 3 more files
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use better-colors".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.