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
POST https://luminapalettegenerator.usefulweb.site/api/v1/calculate– run Color Harmony & Shift GeneratorGET https://luminapalettegenerator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
base | text | "#164E63" | Base HEX color |
count | integer | 6 | Color count |
harmony | select (monochromatic, analogous, complementary, split, triadic, tetradic) | "analogous" | HSL harmony |
hue | number | 45 | Hue travel (degrees) |
saturation | number | -18 | Saturation travel (percentage points) |
lightness | number | 48 | Lightness travel (percentage points) |
easing | select (linear, ease-in, ease-out, smooth) | "smooth" | Shift easing |
locks | textarea | — | 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)
- Streamable HTTP endpoint:
https://luminapalettegenerator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_palette_generator - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-palette-generator
{
"mcpServers": {
"lumina-palette-generator": { "type": "http", "url": "https://luminapalettegenerator.usefulweb.site/mcp" }
}
}