API & MCP

Everything a person can do on Color Harmony & Shift Generator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Color Harmony & Shift Generator

Generate 2–24 opaque colors using six HSL harmonies and hue, saturation and lightness travel. Preserve chosen positions with color locks and download HEX, CSS, GPL, JASC-PAL and SVG palettes.

Inputs of Color Harmony & Shift Generator
FieldTypeDefaultDescription
basetext"#164E63"Base HEX color
countinteger6Color count
harmonyselect (monochromatic, analogous, complementary, split, triadic, tetradic)"analogous"HSL harmony
huenumber45Hue travel (degrees)
saturationnumber-18Saturation travel (percentage points)
lightnessnumber48Lightness travel (percentage points)
easingselect (linear, ease-in, ease-out, smooth)"smooth"Shift easing
lockstextarea—Locked positions (for example 1=#164E63; 3=#FFFFFF)

Example request

A tidal color ramp

curl -X POST https://luminapalettegenerator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"base":"#164E63","count":6,"harmony":"analogous","hue":45,"saturation":-18,"lightness":48,"easing":"smooth"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "lumina-palette-generator": { "type": "http", "url": "https://luminapalettegenerator.usefulweb.site/mcp" }
  }
}