Public APIs
Serialif Color favicon

Serialif Color

Development

Color conversion, complementary, grayscale and contrasted text.

Serialif Color's website screenshot

About Serialif Color

Serialif Color is a REST API that accepts a color in Keyword, HEX, RGB/RGBA, or HSL/HSLA format and returns data about it. Colors can be submitted as path segments or query parameters, with the format inferred from the input.

For a requested color, the API returns the base color, its complementary color, and a grayscale version, each provided with and without alpha channel, in HEX, RGB, and HSL representations. It also calculates a contrasting text color (black or white) for each of these three colors based on brightness. Responses are returned in JSON, and the API returns a structured error object when an invalid color format is submitted.

Key features

  • Accepts color input as Keyword, HEX, RGB/RGBA, or HSL/HSLA
  • Returns the complementary color for a given input color
  • Returns a grayscale version of a given input color
  • Computes contrasted (black or white) text color based on brightness for each returned color
  • Returns color data in multiple formats (HEX, RGB, HSL) simultaneously
  • Supports alpha channel via RGBA, HSLA, and 8-character HEX

Frequently asked questions

What color formats does the API accept?

It accepts Keyword, HEX (3, 4, 6, or 8 characters), RGB/RGBA, and HSL/HSLA formats, passed directly in the URL path or as query parameters.

What does the API return for a given color?

It returns the base color, its complementary color, and a grayscale version, each with and without alpha, plus a contrasted (black or white) text color for each based on brightness.

Is this a REST API?

Yes, it is a REST API that returns JSON data for requested colors.

How do I request a color, for example a keyword?

You can request via URL path like https://color.serialif.com/aquamarine or with an explicit parameter like https://color.serialif.com/keyword=aquamarine.

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