Catalog/design-kelvin-rgb

Design

Kelvin temperature to RGB API

Converts a blackbody color temperature in Kelvin (1000-40000K) to an approximate sRGB color (Tanner Helland model) with a descriptive label from candlelight to cool daylight. Answers 'What color is 3000K light?', 'Convert color temperature to RGB.'

Price$0.04per request
MethodPOST
Route/v1/design/kelvin-rgb
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
colorkelvintemperatureblackbodywhite-balancergblightingdesign
API URLhttps://x402.hexl.dev/v1/design/kelvin-rgb
Integration docs
Example request
{
  "kelvin": 3000
}
Example response
{
  "kelvin": 3000,
  "hex": "#ffb16e",
  "rgb": {
    "r": 255,
    "g": 177,
    "b": 110
  },
  "hsl": {
    "h": 27.72,
    "s": 100,
    "l": 71.57
  },
  "label": "warm white / incandescent",
  "interpretation": "3000K ≈ #ffb16e (warm white / incandescent)."
}
Input schema
{
  "type": "object",
  "required": [
    "kelvin"
  ],
  "properties": {
    "kelvin": {
      "type": "number",
      "minimum": 1000,
      "maximum": 40000,
      "examples": [
        3000
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}