The Color API
- Status
- Working
- API key
- Not needed
- Browser calls
- Runs in the browser
- Latency
- 611 ms
Build snapshot, not live. One verifier run on , from the machine that built this site. How we check
Example request
GEThttps://www.thecolorapi.com/id?hex=24B1E0
Sent from your browser straight to www.thecolorapi.com. No proxy: this site never sees the request or the answer.
Copy the request
curl -s 'https://www.thecolorapi.com/id?hex=24B1E0'const res = await fetch("https://www.thecolorapi.com/id?hex=24B1E0");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);import requests
res = requests.get("https://www.thecolorapi.com/id?hex=24B1E0", timeout=10)
res.raise_for_status()
print(res.json())Response stored by the verifier
This is what www.thecolorapi.com answered when the verifier sent the request above on : HTTP 200, application/json. Arrays are cut to two items and long strings are shortened. It comes from the build snapshot.
{
"hex": {
"value": "#24B1E0",
"clean": "24B1E0"
},
"rgb": {
"fraction": {
"r": 0.1411764705882353,
"g": 0.6941176470588235,
"b": 0.8784313725490196
},
"r": 36,
"g": 177,
"b": 224,
"value": "rgb(36, 177, 224)"
},
"hsl": {
"fraction": {
"h": 0.5416666666666666,
"s": 0.752,
"l": 0.5098039215686274
},
"h": 195,
"s": 75,
"l": 51,
"value": "hsl(195, 75%, 51%)"
},
"hsv": {
"fraction": {
"h": 0.5416666666666666,
"s": 0.8392857142857143,
"v": 0.8784313725490196
},
"value": "hsv(195, 84%, 88%)",
"h": 195,
"s": 84,
"v": 88
},
"name": {
"value": "Cerulean",
"closest_named_hex": "#1DACD6",
"exact_match_name": false,
"distance": 356
},
"cmyk": {
"fraction": {
"c": 0.8392857142857143,
"m": 0.20982142857142858,
"y": 0,
"k": 0.1215686274509804
},
"value": "cmyk(84, 21, 0, 12)",
"c": 84,
"m": 21,
"y": 0,
"k": 12
},
"XYZ": {
"fraction": {
"X": 0.46499450980392154,
"Y": 0.5898698039215686,
"Z": 0.9204125490196079
},
"value": "XYZ(46, 59, 92)",
…Availability
Up 1 of 1 day checked · 30-day window
What counts as up for this API: an answer within five seconds, a 2xx status, and the JSON body must contain the field "name".
Last check: — passed, HTTP 200 in 611 ms.
The check runs from our infrastructure, not from where you are. If you need certainty, send the request yourself above. How the verifier works.
Questions
Does the The Color API need an API key?
No. The sample request on this page was answered without a key, token or account.
Can I call the The Color API from the browser?
Yes. www.thecolorapi.com answered our verifier with an Access-Control-Allow-Origin header on Oct 3, 2026, so a fetch call from a web page can read the response.
Is the The Color API working?
At the check on Oct 3, 2026 it returned HTTP 200 with the expected data in 611 ms. The status at the top of this page shows the most recent result we have.