Color Converter API Reference
Convert any color between HEX (#rrggbb), RGB (r, g, b), HSL (hue, saturation, lightness), and HSV/HSB (hue, saturation, value) formats. Accepts HEX with or without the # prefix, shorthand HEX (#abc), rgb() function syntax, hsl() function syntax, or bare r,g,b values. Returns all four representations at once.
Endpoint
/api/color-converterFull URL: https://quickhelp.dev/api/color-converter
Request
Content-Type: application/json. No authentication required for the anonymous free tier (30 req/min per IP).
| Field | Type | Required | Description |
|---|---|---|---|
| color | string | Yes | Color in any format: #rrggbb, #rgb, rrggbb, rgb(r,g,b), r,g,b, hsl(h,s%,l%), or hsv(h,s%,v%) |
Response
Returns application/json. On error, returns a JSON object with an error string field and an appropriate HTTP status code.
| Field | Type | Description |
|---|---|---|
| hex | string | HEX color code with # prefix (e.g. #ff6600) |
| rgb | object | — |
| hsl | object | — |
| hsv | object | — |
| valid | boolean | — |
| error | optional | — |
Example
HEX to all formats
curl
curl -X POST https://quickhelp.dev/api/color-converter \
-H 'Content-Type: application/json' \
-d '{"color":"#ff6600"}'Request body
{
"color": "#ff6600"
}Response
{
"hex": "#ff6600",
"rgb": {
"r": 255,
"g": 102,
"b": 0,
"css": "rgb(255, 102, 0)"
},
"hsl": {
"h": 24,
"s": 100,
"l": 50,
"css": "hsl(24, 100%, 50%)"
},
"hsv": {
"h": 24,
"s": 100,
"v": 100
},
"valid": true
}Error codes
| Status | Meaning |
|---|---|
| 200 | Success — result in response body |
| 400 | Bad request — invalid input; error field describes the problem |
| 404 | Tool not found |
| 429 | Rate limit exceeded (30 req/min anonymous, 300 req/min free key) |
| 500 | Internal server error — transient; retry with exponential back-off |
OpenAPI spec
The full OpenAPI 3.1 specification for all tools is available at /openapi.json. Import it into Postman, Insomnia, or any OpenAPI-compatible client to get all endpoints with schema validation automatically.