Colors API logo

Colors API

|
Tools
|
1 tokens / llamada

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.

Inicio Rápido

Suscríbete para obtener acceso instantáneo a la API con tu clave única.

Ver Planes de Precios

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' }
});