Color Converter, Palette & WCAG Contrast API
Published by @mdforge
· Verified
99.98% uptime
~4ms avg
AI Score 94/100
Convert HEX/RGB/HSL/CMYK, generate complementary/analogous/triadic palettes & shades, and test WCAG 2.1 AA/AAA contrast.
Try it live
https://api.indieapis.com/v1/color-palette-contrast/convert
Exact color space conversion from any 3- or 6-digit hex code.
Response
Press Run to call the live API
{
"ok": true
}
Overview
Convert HEX/RGB/HSL/CMYK, generate complementary/analogous/triadic palettes & shades, and test WCAG 2.1 AA/AAA contrast.
Zero-proxy production API with hard monthly spend caps ($0 surprise overages) and native Streamable HTTP MCP support.
Gateway Headers & Hard Caps
Every response includes X-Quota-Limit, X-Quota-Used, X-Quota-Remaining, and X-Quota-Reset.
When your monthly quota is reached, the gateway returns 429 QUOTA_EXCEEDED so you are never billed surprise overages.
3 endpoints
| Method | Path | Parameters | Description |
|---|---|---|---|
| GET | /convert |
hex*
|
Exact color space conversion from any 3- or 6-digit hex code. |
| GET | /palette |
hex*
|
Complementary, analogous, triadic, and 6-step shade ramps. |
| GET | /contrast |
fg*, bg*
|
Exact luminance contrast ratio with AA & AAA pass/fail flags. |