Archive Gradient — Lab-Interpolated Colour Journey
palette_gradientGenerate a smooth gradient between archive colours, snapping each interpolated stop to the nearest real colour. Choose linear or chroma-preserved interpolation to control midpoint saturation.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchors | Yes | 2-5 hex values (#RRGGBB) or exact archive colour names | |
| steps | No | Total stops including anchors (default 7, max 20) | |
| path | No | linear: straight Lab lerp (may have neutral midpoint). chroma_preserved: LCh short-arc, saturation maintained. | chroma_preserved |
| snap_to_archive | No | Snap each stop to nearest archive colour (default true) | |
| archive | No | Restrict snapping to this archive name e.g. Victorian | |
| output_format | No | stops: array of colour objects. css: linear-gradient string. svg: swatch bar. | stops |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| result | No | ||
| error | No |