Public APIs
xColors favicon

xColors

Art & Design

Generate & convert colors.

xColors's website screenshot

About xColors

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.

Key features

  • Get random colors returned in HEX, RGB, and HSL formats
  • Get random shades filtered by hue name (e.g. red, blue, green) or hue number (0-359)
  • Filter random colors by dark or light shade with the type parameter
  • Request multiple random colors at once with the number parameter
  • Convert colors between HEX, RGB, and HSL models via dedicated endpoints

Frequently asked questions

Is xColors free to use?

Yes, xColors is described as a completely free service.

What color formats does it support?

It supports HEX, RGB, and HSL color models for both random generation and conversion.

Is this project still maintained?

No, the repository is archived and the README states it is not maintained and exists only for history.

What tech stack is it built with?

It's built with Node.js and TypeScript (ts-node) using Express, and can be run via npm scripts or Docker.

How is the data returned?

Responses come in JSON format, allowing colors to be used directly for CSS styling without additional validation.

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