{"ok":true,"tool":"Color Contrast Checker","operation":"check-color-contrast","description":"Compute the WCAG contrast ratio and AA/AAA pass results for two colors.","method":"POST","endpoint":"/api/color-contrast-checker","webUrl":"https://toolhub-5eo.pages.dev/tools/color-contrast-checker","parameters":{"type":"object","properties":{"foreground":{"type":"string","description":"Foreground (text) hex color"},"background":{"type":"string","description":"Background hex color"}},"required":["foreground","background"]},"response":{"type":"object","properties":{"contrastRatio":{"type":"number"},"wcag":{"type":"object"},"passesAA":{"type":"boolean"},"passesAAA":{"type":"boolean"}}},"example":{"request":{"foreground":"#000000","background":"#ffffff"},"response_shape":{"type":"object","properties":{"contrastRatio":{"type":"number"},"wcag":{"type":"object"},"passesAA":{"type":"boolean"},"passesAAA":{"type":"boolean"}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/color-contrast-checker. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  foreground (string, required) — Foreground (text) hex color\n  background (string, required) — Background hex color","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/color-contrast-checker -H \"Content-Type: application/json\" -d '{\"foreground\":\"#000000\",\"background\":\"#ffffff\"}'"}