Access all 5,446 named ColorArchive colors via a simple REST API. Free, no auth required, CORS enabled.
https://colorarchive.org/api/api/colors/Search, filter, and paginate through 5,446 colors. Supports semantic search — try queries like "sunset", "ocean", or "minimal".
| Name | Type | Default | Description |
|---|---|---|---|
| q | string | "" | Search by name, hex, or semantic keyword (e.g. "sunset", "ocean", "pastel") |
| family | string | "All" | Filter by color family: Red, Orange, Yellow, Lime, Green, Teal, Blue, Purple, Pink |
| sort | string | "hue" | Sort order: hue, lightness, or name |
| limit | number | 50 | Max results per page (1–200) |
| offset | number | 0 | Pagination offset |
{
"total": 280,
"limit": 2,
"offset": 0,
"colors": [
{
"id": "teal-ink-muted",
"name": "Teal Ink Muted",
"hex": "#1D2A26",
"rgb": "rgb(29, 42, 38)",
"hsl": "hsl(160, 18%, 14%)",
"hue": 160,
"saturation": 18,
"lightness": 14,
"family": "Teal"
},
...
]
}/api/colors/:id/Get a single color by its slug or hex code. Returns the full color record plus relationships (analogous, complementary, triadic, split-complementary, nearest).
| Name | Type | Default | Description |
|---|---|---|---|
| id | string | — | Color slug (e.g. "sapphire-core-vivid") or 6-digit hex without # (e.g. "207AD5") |
{
"id": "sapphire-core-vivid",
"name": "Sapphire Core Vivid",
"hex": "#207AD5",
"rgb": "rgb(32, 122, 213)",
"hsl": "hsl(210, 74%, 48%)",
"hue": 210,
"saturation": 74,
"lightness": 48,
"family": "Blue",
"relationships": {
"analogous": [ ... ],
"complementary": { ... },
"triadic": [ ... ],
"splitComplementary": [ ... ],
"nearest": [ ... ]
}
}const res = await fetch("https://colorarchive.org/api/colors/?q=sunset&limit=10");
const { colors } = await res.json();
console.log(colors[0].hex); // "#272120"curl "https://colorarchive.org/api/colors/?family=Blue&sort=lightness&limit=5"