Image Color Picker API - dominant HEX/RGB/HSL palette & exact pixel sampler
image_color_pickerExtract the dominant colour palette (5, 8 or 12 colours) with HEX, RGB and HSL values plus CSS custom properties from any image, and optionally sample the exact colour (or 5x5 average) at a given (x%, y%) coordinate. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/image-color-picker.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x": 50,
"y": 50,
"colors": "5",
"fileName": "sample.png",
"average5x5": true,
"fileContent": "iVBORw0KGgoAAAANSUhEUgAAAHgAAABQCAIAAABd+SbeAAAA6klEQVR4nO3cQQ2DABAAwdKgg1cFVQIykIOEyqiIisFDKdsQZv6XXDb3vmFa3jeOd//3AlchdEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6Mi4Z/jznH+0xmk8Xut3gy46InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ZPIFtuOiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNCRDexBBl0OjJSaAAAAAElFTkSuQmCC"
},
"name": "image_color_picker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional horizontal sample point (% from left, 0-100) | |
| y | No | Optional vertical sample point (% from top, 0-100) | |
| files | No | Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total) | |
| colors | No | Number of dominant colours: 5, 8 or 12 | 8 |
| fileName | No | File name with extension, e.g. report.pdf | |
| average5x5 | No | Average a 5x5 pixel area around (x, y) | |
| fileContent | No | The file as base64 (a data: URI is fine; 20 MB total decoded limit per call) |