webdev_color_palette
Generate a color palette from a base hex color using complementary, analogous, triadic, tetradic, monochromatic, or random schemes. Output includes hex, RGB, HSL, contrast ratio, and light/dark flag.
Instructions
Color Palette Generator. Generate a harmonious color palette from a base hex color using a chosen color-theory scheme (complementary, analogous, triadic, tetradic, monochromatic, or random). Use this when you want a multi-color scheme derived from one seed color; use webdev_css_gradient_generator instead when you need CSS gradient code, or webdev_hex_color to inspect or convert a single color. Runs locally on the values you provide: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/minute for anonymous callers). The random scheme draws fresh colors each call, so output is not idempotent. Returns each color as hex, RGB, and HSL plus its nearest name, white-background contrast ratio, and light/dark flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paletteType | Yes | Color-theory scheme that determines how the other colors are derived from baseColor. Required; an unrecognized value is rejected with HTTP 400. | |
| baseColor | No | Seed color as a 3- or 6-digit hex string (formats #RGB or #RRGGBB). Defaults to #3498db. | #3498db |
| colorCount | No | Total number of colors to return, including the base color. Must be an integer from 2 to 12. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseColor | No | Normalized lowercase 6-digit base hex color used. | |
| paletteType | No | The scheme applied to derive the palette. | |
| colorCount | No | Number of colors returned. | |
| colors | No | The generated colors in scheme order; the first is the base color. |