Image dominant colors
Try it interactively →POST /api/image-dominant-colorsExtract the dominant colours of an image. Returns hex / RGB / HSL plus pixel-coverage percentage. Useful for theme generation, design palettes, and image categorisation.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| image* | file | — | Input image (PNG / JPEG / WebP). |
| n | number (1…64) | 5 | Number of dominant colours to return. |
Response
Modes: json. Cache: yes (24h TTL).