Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
seed_colorYesSeed hex color to generate the palette from
harmonyNoColor harmony rule to applycomplementary
include_shadesNoInclude 10-step lightness shades (50–900) for the primary color

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ncsound919/OG-Glass'

If you have feedback or need assistance with the MCP directory API, please join our Discord server