Chromex
## Chromex You're building a product that deals with images, and somewhere in your codebase there's a color extraction function held together with regex and hope. It returns hex values, maybe RGB if you're lucky, and it falls apart the moment someone uploads a WebP or a transparent PNG. Meanwhile, your designer is asking for WCAG contrast ratios and your frontend needs Tailwind classes, not raw…
Chromex endpoints
| Method | Endpoint | Description |
|---|---|---|
| extract | ||
| POST |
extractColorsPost /extract |
Same as GET but accepts parameters in the request body. |
| GET |
extractColorsGet /extract |
Returns dominant colors with HEX, RGB, HSL, CMYK, LAB formats, color names, Tailwind classes, and percentage distribution. |
| batch | ||
| POST |
batchExtract /batch |
Process up to 20 image URLs in a single request. Returns results for each URL. |
| harmony | ||
| GET |
getHarmonies /harmony |
Returns complementary, analogous, triadic, tetradic, split-complementary, and monochromatic palettes for any hex color. |
| theme | ||
| GET |
generateThemeGet /theme |
Extracts colors from an image and generates a complete UI color theme with light and dark mode variants, including WCAG accessibility scores. |
| POST |
generateThemePost /theme |
|
| css | ||
| POST |
getCSSPost /css |
|
| GET |
getCSSGet /css |
Returns extracted colors as ready-to-use CSS custom properties and Tailwind theme configuration. |
| accessibility | ||
| POST |
checkAccessibilityPost /accessibility |
|
| GET |
checkAccessibilityGet /accessibility |
Computes contrast ratio and WCAG AA/AAA compliance for any two colors. |
Chromex pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO | $7 / month | — |
|
| ULTRA | $15 / month | — |
|
| MEGA | $49 / month | — |
|