Graphics

The Color API

by thecolorapi.com

Graphics Added on November 1st, 2026
Visit thecolorapi.com →

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.
  • API
  • Ajax
  • HTTP-GET
  • JSON
  • REST

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

Listed on Free Web Services

thecolorapi.com
The Color API

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.

Did it work for you?

Tell us what you found when you tried The Color API.