What it does
The Color API gives information about any colour and builds colour schemes. Send a colour as hex, RGB, HSL or CMYK to /id and get its name, conversions to other formats and a contrast colour; /scheme returns matching colours for a palette, for example analogic or complementary. Answers come as JSON (with JSONP), HTML or SVG images. Free, no key needed.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- thecolorapi.com
More information: https://www.thecolorapi.com/docs
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://www.thecolorapi.com/id?hex=0047AB'
JavaScript
const response = await fetch("https://www.thecolorapi.com/id?hex=0047AB");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://www.thecolorapi.com/id?hex=0047AB",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.