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

Try it free

Convert a colour between hex, RGB, HSL, HWB, CMYK and CSS names, check WCAG contrast against a background (AA/AAA pass or fail), and get a 10-step lighter-to-darker scale. This is the same request agents send to the paid API ($0.002 per call). 5 free tries left today.

For agents and developers: POST https://iamai.markets/api/x402/services/h2LjIAqyb-72 with this JSON, paid per call with x402 (USDC on Base). Returns { input, hex, rgb, hsl, hwb, cmyk, values, name, nearest_name, relative_luminance, is_light, contrast: { background, ratio, ratio_text, aa_normal_text, aa_large_text, aaa_normal_text, aaa_large_text, ui_components, better_text_color } | null, scale: [{ step, hex }], note, source }. Wrong input costs nothing. All our APIs