{"slug":"keyronne-com-api-color-424e1d","title":"Parse any CSS color (hex, rgb(), hsl()) and emit all three formats plus relative","host":"keyronne.com","method":"POST","resource":"https://keyronne.com/api/color","category":"other","description":"Parse any CSS color (hex, rgb(), hsl()) and emit all three formats plus relative luminance. Compute WCAG contrast ratios against a background with AA/AAA pass-fail for normal and large text, and lighten, darken, or mix colors. Built for agents generating accessible UI themes. POST a JSON body like: ","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":44,"reported_calls_30d":5,"reported_payers_30d":4,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"background":"#ffffff","color":"#3498db"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"body":{"properties":{"background":{"description":"Optional second color for a WCAG contrast check.","type":"string"},"color":{"description":"A color: \"#3498db\", \"rgb(52,152,219)\", or \"hsl(204,70%,53%)\".","type":"string"},"darken":{"description":"Decrease lightness by this many percent (0-100).","type":"number"},"lighten":{"description":"Increase lightness by this many percent (0-100).","type":"number"},"mix":{"description":"Blend the color toward this one.","type":"string"},"weight":{"default":0.5,"description":"Mix weight toward \"mix\".","maximum":1,"minimum":0,"type":"number"}},"required":["color"],"type":"object"},"bodyType":{"enum":["json"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"type":"object"},"output":{"properties":{"adjusted":{"description":"Present when lighten/darken is given.","type":"string"},"contrast":{"description":"Present when \"background\" is given.","type":"object"},"hex":{"type":"string"},"hsl":{"type":"object"},"luminance":{"type":"number"},"mixed":{"description":"Present when \"mix\" is given.","type":"string"},"rgb":{"type":"object"}},"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":44,"error":null}],"description_full":"Parse any CSS color (hex, rgb(), hsl()) and emit all three formats plus relative luminance. Compute WCAG contrast ratios against a background with AA/AAA pass-fail for normal and large text, and lighten, darken, or mix colors. Built for agents generating accessible UI themes. POST a JSON body like: {\"color\":\"#3498db\",\"background\":\"#ffffff\"}","last_updated":"2026-09-17T03:48:15.543Z","schemes":["exact"]}