build_palette
Build a perceptually even colour ramp from a single seed colour in OKLCH, returning 11 steps with precomputed contrast and CSS custom properties, replacing uneven hand-picked hex values.
Instructions
Build a perceptually even colour ramp from one seed colour, in OKLCH. Returns 11 steps with contrast against white and black already computed, plus the CSS custom properties. Use this instead of hand-picking hex values, which produces unevenly spaced ramps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Token name for the generated custom properties. Defaults to 'accent'. | |
| seed | Yes | Seed colour as #rgb, #rrggbb, or rgb(r, g, b). |