Back to Tool
🎨
Color Picker API
Convert colors between HEX, RGB, HSL formats via API
Endpoint
POST
/api/v1/color-pickerAuthentication
Include your API key in the request header:
X-API-Key: your_api_key_hereGet your API key from the Dashboard
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| color | string | Yes | Color in HEX (#FF0000), RGB (rgb(255,0,0)), or HSL (hsl(0,100%,50%)) format |
| from | string | No | Input format: hex, rgb, hsl, auto (default: auto) |
Response
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the operation was successful |
| hex | string | Color in HEX format (#RRGGBB) |
| rgb | object | RGB values { r, g, b } |
| hsl | object | HSL values { h, s, l } |
| rgbString | string | CSS RGB string |
| hslString | string | CSS HSL string |
Code Examples
curl -X POST https://tools.shubhambadgujar.com/api/v1/color-picker \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"color": "#FF5733"}'Rate Limits
- • 100 requests per minute
- • 10,000 requests per day
- • Max request size: 10MB
Need Help?
Contact us at support@shubhambadgujar.com