Complete reference for the Color API. Test endpoints interactively with your API key, view code examples, and understand response formats.
https://color.endpnt.dev/api/v1Include your API key in the x-api-key header. Get your API key from the pricing page.
All endpoints return JSON with a consistent structure including success,data, and meta fields.
Convert colors between different formats (hex, rgb, hsl, hwb, lab, lch, oklch, etc.)
Get your API key from the pricing page
curl -X POST https://color.endpnt.dev/api/v1/convert \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"color": "#D946EF",
"to": "oklch"
}'Analyze color contrast using WCAG 2.1 and APCA algorithms for accessibility compliance
curl -X POST https://color.endpnt.dev/api/v1/contrast \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"foreground": "#D946EF",
"background": "#ffffff",
"algorithm": "both"
}'Generate complementary, triadic, analogous, and other color harmony schemes
curl -X POST https://color.endpnt.dev/api/v1/harmony \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"color": "#D946EF",
"type": "complementary"
}'Generate a palette algorithmically from a single seed color (Starter+ required)
Get your API key from the pricing page
curl -X POST https://color.endpnt.dev/api/v1/palette \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": "#3B82F6",
"algorithm": "tints",
"count": 5
}'Simulate how colors appear to users with different types of color blindness
curl -X POST https://color.endpnt.dev/api/v1/blindness \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"color": "#D946EF",
"type": "protanopia"
}'INVALID_COLOR_FORMAT - Invalid color formatMISSING_REQUIRED_FIELD - Required parameter missingUNSUPPORTED_OPERATION - Unsupported operationRATE_LIMITED - Rate limit exceededPROCESSING_ERROR - Error processing requestSERVICE_UNAVAILABLE - Service temporarily unavailable