palette_gradient
ActiveTool of Colour Memory
Generate a perceptually smooth gradient between 2-5 archive anchor colours. Each interpolated stop snaps to the nearest real archive colour by CIEDE2000. Anchor stops are kept true to their source. Choose linear (physically accurate Lab interpolation) or chroma_preserved (LCh interpolation, short-arc hue, avoids desaturated midpoints). Returns stop array, CSS linear-gradient string, or SVG swatch bar. Use for design briefs, colour journey visualisations, and gradient systems.
Parameters schema
{
"type": "object",
"required": [
"anchors"
],
"properties": {
"path": {
"enum": [
"linear",
"chroma_preserved"
],
"type": "string",
"default": "chroma_preserved",
"description": "linear: straight Lab lerp (may have neutral midpoint). chroma_preserved: LCh short-arc, saturation maintained."
},
"steps": {
"type": "integer",
"default": 7,
"description": "Total stops including anchors (default 7, max 20)"
},
"anchors": {
"type": "array",
"items": {
"type": "string"
},
"description": "2-5 hex values (#RRGGBB) or exact archive colour names"
},
"archive": {
"type": "string",
"description": "Restrict snapping to this archive name e.g. Victorian"
},
"output_format": {
"enum": [
"stops",
"css",
"svg"
],
"type": "string",
"default": "stops",
"description": "stops: array of colour objects. css: linear-gradient string. svg: swatch bar."
},
"snap_to_archive": {
"type": "boolean",
"default": true,
"description": "Snap each stop to nearest archive colour (default true)"
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
Colour Memory
https://github.com/DigbyO/colour-memory-api
2/7 registries