# The Color API

Category: [Graphics](https://free-web-services.com/web-services/graphics/)  
Page: https://free-web-services.com/web-services/graphics/the-color-api.html  
Documentation: https://www.thecolorapi.com/docs

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 key: Not needed
- Pricing: Free, no key needed.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: thecolorapi.com

Example request:

```sh
curl 'https://www.thecolorapi.com/id?hex=0047AB'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

