Public APIs
The Color favicon

The Color

Art & Design

Swiss army knife for color.

The Color's website screenshot

About The Color

The Color API is a web service for color conversion, identification, and scheme generation. It accepts a color value in hex, RGB, CMYK, HSL, or HSV format and returns that color transposed into all of these formats, along with a matched name from a dataset of over 2000 named colors, a demonstration image URL, and a best-contrast color for text overlay. Responses are available in JSON, JSONP, HTML, and SVG.

The API also generates color schemes seeded from a supplied color, with selectable modes including monochrome, monochrome-dark, monochrome-light, analogic, complement, analogic-complement, triad, and quad. Scheme length can be specified within limits, and each generated scheme includes a full color object for every constituent color.

The service exposes two main endpoints, /id and /scheme, and is aimed at developers needing programmatic color identification, format conversion, or scheme generation, such as for placeholder images or UI theming. It is open source.

Key features

  • Convert colors between hex, rgb, cmyk, hsl, hsv and XYZ formats
  • Identify color names from a dataset of over 2000 named colors
  • Generate placeholder images for any color
  • Match colors to a best-contrast color for text overlay
  • Generate color schemes (monochrome, analogic, complement, triad, quad, etc.)
  • Responses available in JSON, JSONP, HTML and SVG formats

Frequently asked questions

What are the main endpoints of the Color API?

The API has two main endpoints, /id for identifying/converting a color and /scheme for generating color schemes.

What color formats does it support?

It accepts and returns hex, rgb, cmyk, hsl, hsv, and XYZ color formats.

What response formats are available?

Each endpoint is available in JSON, JSONP, HTML, and SVG formats, with SVG usable directly as an img src for embedding.

Is this API free to use?

The page does not state pricing details, but it is described as an open source API and asks users to support the developer if they find it useful.

What scheme modes can I generate?

Available scheme modes include monochrome, monochrome-dark, monochrome-light, analogic, complement, analogic-complement, triad, and quad.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product