generate_color_palette
Generate harmonious color palettes from a seed color using color theory rules like complementary or triadic, with optional shade scales for design systems.
Instructions
Generate a harmonious color palette from a seed hex color using color theory.
Args:
seed_color (string): 6-digit hex color (e.g. '#6366f1')
harmony ('complementary'|'triadic'|'analogous'|'monochromatic'|'split-complementary'|'tetradic'): Color harmony rule (default: 'complementary')
include_shades (boolean): Include 10-step lightness shades 50–900 (default: true)
Returns:
seed: Input color
hsl: Hue, saturation, lightness of seed
harmony: Harmony type used
colors: Named harmony colors (primary, complement, etc.)
semantic: foreground, background, muted, surface aliases
shades: 50–900 shade scale (if include_shades is true)
Use the result to populate apply_token_overrides or scaffold_preset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed_color | Yes | Seed hex color to generate the palette from | |
| harmony | No | Color harmony rule to apply | complementary |
| include_shades | No | Include 10-step lightness shades (50–900) for the primary color |