conversion

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

POST/api/color-converter

Full 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).

FieldTypeRequiredDescription
colorstringYesColor 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.

FieldTypeDescription
hexstringHEX color code with # prefix (e.g. #ff6600)
rgbobject
hslobject
hsvobject
validboolean
erroroptional

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

StatusMeaning
200Success — result in response body
400Bad request — invalid input; error field describes the problem
404Tool not found
429Rate limit exceeded (30 req/min anonymous, 300 req/min free key)
500Internal 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.

We use cookies to serve ads and measure traffic. Cookie policy · Privacy policy