Color API

The Color API for Developers

Programmatically convert, parse, compare, and generate colors. REST API with sub-second response times and a free tier available.

Features

All the color capabilities you need

One API for naming, converting, checking and generating colors.

Naming

Generate beautiful, consistent names for any color. From descriptive names like "Ocean Blue" to systematic names like "cerulean 400".

Conversion

Convert between HEX, RGB, RGBA, HSL, HSLA, OKLCH, OKLAB, LCH, LAB, and more.

Accessibility

Check WCAG compliance, calculate contrast ratios, and simulate color blindness. Build inclusive interfaces with confidence.

Palette Generation

Generate harmonious color palettes from a single color. Create monochromatic, analogous, complementary, or custom scales.

Analysis

Extract perceptual properties like hue, saturation, lightness, temperature, and brightness. Understand colors at a deeper level.

Repair

Fix out-of-gamut colors, correct contrast issues, and repair broken color values automatically.

Parsing

Parse colors from any format—CSS strings, hex codes, color functions, or CSS color names like "skyblue".

Batch Processing

Analyze up to 50 colors in one request. Useful for design systems, themes and audits.

Pricing

Simple, transparent pricing

Start free and scale as you grow. No hidden fees, no surprises.

Free

Perfect for hobby projects and learning

$0 /mo

$0/yr

25 RPM, burst 8

  • 5,000 API requests/month
  • 25 RPM, burst 8
  • Basic color conversions
  • Community support
Get API Key

FAQ

Common questions

Chrome Extension

Pick colors instantly, anywhere on the web

Pick any color on a page and copy its hex code or OKLCH, with color names and the closest Tailwind colors.

Start building with Color API today

Get your free API key and start converting, naming, and generating colors in seconds. No credit card required.