Give it one brand colour and it draws the full ramp of shades around it, from near white to near black, in OKLCH. Bend the ramp with three curves (lightness, chroma and hue), choose how many stops you need, check each shade against white and black text, and copy the result. Everything you set is in the address, so the link is the palette.
This is the palette editor of the theme studio, which themes a whole app the same way. Open the full studio
Curves
Drag the round handles, or focus one and use the arrow keys. Each dot on the curve is a stop. Click a shade in the strip to pin it to an exact colour: the curve then passes through it.
| Shade | Hex | Contrast on white | on black |
|---|---|---|---|
| 50 | #FFF5F4 | 1.1 fails AA | 19.6 passes AA |
| 100 | #FFE7E5 | 1.2 fails AA | 17.8 passes AA |
| 200 | #FFCCC9 | 1.4 fails AA | 14.7 passes AA |
| 300 | #FFADA9 | 1.8 fails AA | 11.8 passes AA |
| 400 | #FF8A86 | 2.3 fails AA | 9.2 passes AA |
| 500 | #FF6062 | 3.0 fails AA | 7.1 passes AA |
| 600 | #E5484D | 3.9 fails AA | 5.4 passes AA |
| 700 | #C1373D | 5.4 passes AA | 3.9 fails AA |
| 800 | #982A2E | 7.8 passes AA | 2.7 fails AA |
| 900 | #6F2022 | 11.1 passes AA | 1.9 fails AA |
| 950 | #441415 | 15.5 passes AA | 1.4 fails AA |
Contrast is the WCAG ratio of the shade against white and against black. A tick is 4.5 to 1 or more, enough for body text.
Custom properties on :root. Use one as var(--brand-500).
:root {
--brand-50: oklch(97.7% 0.011 23.026);
--brand-100: oklch(94.6% 0.027 23.026);
--brand-200: oklch(88.9% 0.058 23.026);
--brand-300: oklch(82.6% 0.097 23.026);
--brand-400: oklch(76.1% 0.142 23.026);
--brand-500: oklch(69.6% 0.194 23.026);
--brand-600: oklch(62.6% 0.193 23.026);
--brand-700: oklch(54.5% 0.174 23.026);
--brand-800: oklch(45.8% 0.146 23.026);
--brand-900: oklch(36.9% 0.111 23.026);
--brand-950: oklch(27% 0.073 23.026);
}