Generate & convert colors.
xColors is a free, open-source HTTP API for generating and converting colors, built with TypeScript and Express. It returns colors in HEX, RGB, and HSL formats simultaneously as JSON, and supports fetching random colors either unconstrained or filtered by a specified hue (via a numeric value from 0-359 or reserved color names like red, blue, or green). Requests can specify the number of colors to return and restrict results to dark or light shades.
The API also provides dedicated conversion endpoints between HEX, RGB, and HSL color models, each accepting a value parameter in the corresponding format. It is intended for developers who need color data or conversions for use in CSS styling without additional client-side validation. The project can be run locally via Node.js or deployed using the included Dockerfile, and the repository is archived and no longer maintained.
Yes, xColors is described as a completely free service.
It supports HEX, RGB, and HSL color models for both random generation and conversion.
No, the repository is archived and the README states it is not maintained and exists only for history.
It's built with Node.js and TypeScript (ts-node) using Express, and can be run via npm scripts or Docker.
Responses come in JSON format, allowing colors to be used directly for CSS styling without additional validation.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
Noise Background Image Generator.
Image & video editing, generative AI, 100+ AI models via unified API.
Image Generation API.
RijksMuseum Data.
Swiss army knife for color.
Easily create word clouds.