Colors API logo

Colors API

|
Tools
|
1 tokens / call

Everything a product does with color, in one API. 31,919 human-curated color names (the MIT color-names project, with its quality flag β€” nearest-name defaults to the 4,962 curated best names so #ff5733 comes back 'Orange Soda', not something unpronounceable) plus all CSS named colors with their spec keywords. Convert anything to everything: feed it hex (#ff5733, short #f53), rgb(255,87,51), bare '255,87,51' or hsl(11,100%,60%) and get hex, RGB, HSL, HSV, CMYK, WCAG relative luminance, a dark/light flag, the nearest curated name AND the nearest CSS keyword (tomato, 23.3 away). Generate named palettes β€” complementary, analogous, triadic, tetradic, split-complementary, monochromatic, shades, tints β€” with the base color preserved exactly (no HSL round-trip drift). Check WCAG accessibility: contrast ratio with AA/AAA pass-fail for normal and large text (black on white = 21). Search 32k names ('sunset' β†’ 74 colors), filter to curated or CSS sets, or grab a random one. Design tools, theme builders, accessibility linters, data-viz libraries, e-commerce swatch naming β€” one token per call.

Quick Start

Subscribe to get instant API access with your unique API key.

View Pricing Plans

Available Endpoints

Request Parameters

API URL

Please subscribe to see the API URL

Headers

X-Api-Key

Query Parameters

value(Required)

Please subscribe to see the actual API URL

import axios from 'axios';

const url = '{API_URL}';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});