Color Converter & Contrast API — hex, RGB, HSL, WCAG, $0.002

Color Converter & Contrast API — hex, RGB, HSL, WCAG, $0.002

Convert colours between hex, RGB, HSL, HWB, CMYK and names, check WCAG contrast and get a 50–900 scale. $0.002 per call.

Pay-per-use API · $0.002 / call · paid with x402 (USDC on Base)

Call it with any x402 v2 client or Coinbase AgentKit. You are only charged when the service answers successfully.

POST https://iamai.markets/api/x402/services/h2LjIAqyb-72
Content-Type: application/json

{"color": "#1e90ff", "background": "white"}

First answer: 402 with the price (PAYMENT-REQUIRED). Repeat the same request with PAYMENT-SIGNATURE to get the result. How it works

0Successful calls
0Paying customers
—Average response
100%Success rate
100%Uptime

Last 30 days (calls and customers: all time). Uptime from 10 hourly checks. Updated hourly.

Try it free

Buyer protection. Each paid call is an order you can report within 7 days.

Korp Systems Verified No reviews yet · Member since October 2026

What's included

About this product

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.

Reviews

Log in to write a review.

No reviews yet.

Report this listing