Takes an image by URL or inline base64 and returns its colour palette
Takes an image by URL or inline base64 and returns its colour palette: up to sixteen colours, each with the share of the visible area it covers, its HEX and sRGB values, its OKLCH coordinates, and the WCAG 2.1 contrast ratio against white, against black and against every other colour in the palette. The grouping runs in OKLab rather than RGB, because distance in RGB does not match what an eye sees — it merges dark blue with black and splits two yellows nobody tells apart.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://medien.halowerk.com/v1/image-palette
| Category | Image and media |
|---|---|
| Provider host | medien.halowerk.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.002 | 1197 ms |
| 2026-11-25 | valid payment request | 402 | $0.002 | 1340 ms |
| 2026-11-24 | valid payment request | 402 | $0.002 | 1198 ms |
| 2026-11-23 | valid payment request | 402 | $0.002 | 1189 ms |
| 2026-11-22 | valid payment request | 402 | $0.002 | 1178 ms |
| 2026-11-21 | valid payment request | 402 | $0.002 | 1196 ms |
| 2026-11-20 | valid payment request | 402 | $0.002 | 1157 ms |
| 2026-11-19 | valid payment request | 402 | $0.002 | 1135 ms |
| 2026-11-18 | valid payment request | 402 | $0.002 | 1146 ms |
| 2026-11-17 | valid payment request | 402 | $0.002 | 1136 ms |
| 2026-11-16 | valid payment request | 402 | $0.002 | 1189 ms |
| 2026-11-15 | valid payment request | 402 | $0.002 | 1299 ms |
| 2026-11-14 | valid payment request | 402 | $0.002 | 1149 ms |
| 2026-11-13 | valid payment request | 402 | $0.002 | 1281 ms |
| 2026-11-12 | valid payment request | 402 | $0.002 | 1143 ms |
| 2026-11-11 | valid payment request | 402 | $0.002 | 1275 ms |
| 2026-11-10 | valid payment request | 402 | $0.002 | 1203 ms |
| 2026-11-09 | valid payment request | 402 | $0.002 | 1167 ms |
| 2026-11-08 | valid payment request | 402 | $0.002 | 1159 ms |
| 2026-11-07 | valid payment request | 402 | $0.002 | 1209 ms |
| 2026-11-06 | valid payment request | 402 | $0.002 | 1171 ms |
| 2026-11-05 | valid payment request | 402 | $0.002 | 1178 ms |
| 2026-11-04 | valid payment request | 402 | $0.002 | 1165 ms |
| 2026-11-03 | valid payment request | 402 | $0.002 | 1158 ms |
| 2026-11-02 | valid payment request | 402 | $0.002 | 1172 ms |
Example input (from the provider)
{
"body": {
"include_contrast": true,
"max_colors": 4,
"min_share_pct": 1,
"source": {
"content_base64": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAKklEQVR42mO4aGKBB+l1h+NBDKOaRzUT1CzvtwIPenFECw8a1TyqmaBmACXxCf9EgyxCAAAAAElFTkSuQmCC",
"filename": "beispiel.png"
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"include_contrast": {
"default": true,
"description": "Return WCAG 2.1 contrast ratios: against white and black per colour, and the full pairwise matrix.",
"type": "boolean"
},
"max_colors": {
"default": 6,
"description": "Upper bound on palette size. Clusters whose share falls below min_share_pct are merged into their nearest neighbour, so the answer can contain fewer.",
"maximum": 16,
"minimum": 2,
"type": "integer"
},
"min_share_pct": {
"default": 1,
"description": "Minimum area share in percent for a colour to stay in the palette. Below this it is merged into the perceptually nearest remaining colour and counted under merged_clusters.",
"maximum": 50,
"minimum": 0,
"type": "number"
},
"source": {
"additionalProperties": false,
"description": "The image. Either url or content_base64, not both.",
"properties": {
"content_base64": {
"description": "The image inline, base64.",
"maxLength": 12000000,
"type": "string"
},
"filename": {
"maxLength": 260,
"type": "string"
},
"url": {
"description": "Public http(s) URL of the image.",
"maxLength": 2048,
"type": "string"
}
},
"type": "object"
}
},
"required": [
"source"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {},
"type": {
"type": "string"
}
},
"required": [
"type",
"example"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}