{"slug":"api-vextorium-com-v1-color-contrast-3d414d","title":"Convert a color between HEX, RGB, HSL, HSV and CMYK and, given a background, com","host":"api.vextorium.com","method":"POST","resource":"https://api.vextorium.com/v1/color-contrast","category":"other","description":"Convert a color between HEX, RGB, HSL, HSV and CMYK and, given a background, compute the WCAG 2.x contrast ratio with AA/AAA pass flags; without background, suggests black or white text.","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":310,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:10","eip155:5042","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"color":"#00ff66","fund":"#0d0e11"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"color":{"description":"#RRGGBB, #RGB, rgb() or hsl()","type":"string"},"fund":{"description":"Background color (optional)","type":"string"}},"required":["color"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"color":{"properties":{"cmyk":{"items":{"type":["null","number"]},"type":["array","null"]},"hex":{"type":["string","null"]},"hsl":{"items":{"type":["null","number"]},"type":["array","null"]},"hsv":{"items":{"type":["null","number"]},"type":["array","null"]},"luminance":{"type":["number","null"]},"rgb":{"items":{"type":["null","number"]},"type":["array","null"]}},"type":["object","null"]},"contrast":{"properties":{"grande_text_AA":{"type":["boolean","null"]},"grande_text_AAA":{"type":["boolean","null"]},"normal_text_AA":{"type":["boolean","null"]},"normal_text_AAA":{"type":["boolean","null"]},"ratio":{"type":["number","null"]},"ui_components":{"type":["boolean","null"]}},"type":["object","null"]},"fund":{"properties":{"cmyk":{"items":{"type":["null","number"]},"type":["array","null"]},"hex":{"type":["string","null"]},"hsl":{"items":{"type":["null","number"]},"type":["array","null"]},"hsv":{"items":{"type":["null","number"]},"type":["array","null"]},"luminance":{"type":["number","null"]},"rgb":{"items":{"type":["null","number"]},"type":["array","null"]}},"type":["object","null"]}},"type":["object","null"]},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":310,"error":null}],"description_full":"Convert a color between HEX, RGB, HSL, HSV and CMYK and, given a background, compute the WCAG 2.x contrast ratio with AA/AAA pass flags; without background, suggests black or white text.","last_updated":"2026-10-03T20:39:51.587Z","schemes":["exact"]}