Domain Rating
by Ahrefs
Domain Rating by Ahrefs45
Description
The Color API is a web API for working with colours. You pass in any valid colour, in hex, RGB, CMY, HSL or HSV form, and get back the colour converted into the other formats, the name of the closest matching colour, a placeholder image, and a best-contrast text colour for overlays. Every colour object is named from a matched dataset of more than 2,000 names and colours, and includes its hex, RGB, CMY, HSL, HSV and XYZ values. A second endpoint generates colour schemes from a seed colour, using modes such as monochrome, analogic, complement, triad and quad, and you choose how many colours the scheme contains. There are only two endpoints to learn, /id and /scheme, and each is available as JSON or JSONP, as HTML, and as SVG. The SVG output can be used directly as an image source for easy embedding. The project is on GitHub, and the site has a try-it page.…
Highlights
- Convert colours between hex, RGB, CMY, HSL, HSV and XYZ
- Name each colour from a dataset of over 2,000 names
- Generate colour schemes in several modes
- Placeholder images and best-contrast text colour
- JSON, JSONP, HTML and SVG output
Ratings & Reviews
No ratings yet
Be the first to rate Thecolorapi.
People also visit
Accessible Color Generator
Create accessible color pairings using your brand colors
Thecolorapi FAQ
What is The Color API?
A web API for converting colours, naming them and generating colour schemes.
How do I convert a colour?
Call the /id endpoint with a colour value, for example /id?hex=00ffa6 or /id?rgb=20,43,55. The same works for cmyk, hsl and hsv.
How do I generate a scheme?
Call the /scheme endpoint with a colour and a scheme mode, such as monochrome, analogic, complement, triad or quad.
What formats does it return?
JSON, JSONP, HTML and SVG. SVG can be used as an image source.
Where can I see the code?
The project is on GitHub, and the site has a try-it page for the endpoints.
What are the best Thecolorapi alternatives?
Popular alternatives to Thecolorapi include Accessible Color Generator, colorize.design and Color.review. See all Thecolorapi alternatives








