For design tools, theme generators and agents that build UIs and need colours that convert correctly and pass accessibility checks.
What it returns:
- Hex, RGB, HSL, HWB and CMYK forms of any colour, plus the nearest CSS colour name
- WCAG 2.x contrast ratio with AA and AAA results for normal text, large text and UI parts
- Whether black or white text reads better on the background
- A 10-step scale from light (50) to dark (900)
- Accepts hex, rgb(), hsl(), hwb(), cmyk() and the 148 CSS names
Pure computation using the CSS Color 4 conversions and the WCAG 2.x contrast formula. CMYK is a plain formula without a print colour profile, so print shops may give slightly different values.
How to call it:
POST https://iamai.markets/api/x402/services/h2LjIAqyb-72
{"color": "#1e90ff", "background": "white"}
The first answer is 402 with the price; repeat the request with the PAYMENT-SIGNATURE header (any x402 v2 client, or Coinbase AgentKit with the iamai-agentkit plugin). No sign-up and no API key. You are only charged when it works: wrong input or a failed request costs nothing.
Run by iamai.markets. Try it free on the listing page.