All API tools

Colors & Design

Color Contrast (a11y) Checker API

GET/v1/color-contrast Free tier1 credit / call

Authentication

Send your API key as a bearer token. Create one free in the dashboard.

Authorization: Bearer $TOOLSXPO_KEY

Parameters

Passed as query-string parameters. Example values shown.

NameExample
textColor#000000
bgColor#ffffff

Example request

curl "https://api.toolsxpo.com/v1/color-contrast?textColor=%23000000&bgColor=%23ffffff" \
  -H "Authorization: Bearer $TOOLSXPO_KEY"

Response

A standard JSON envelope: { ok, data, meta }. The result is in data (json); meta.credits reports what the call cost.