Check Contrast
check_contrastCheck WCAG color contrast ratios for two given colors or auto-detect overlapping foreground and background pairs in a document to ensure accessible design.
Instructions
Check WCAG color contrast ratios. Manual mode: provide two colors. Auto mode: detect overlapping foreground/background pairs in the document. Note: GrayColor uses ink-quantity interpretation (0=white, 100=black), which differs from the API reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color1 | No | First color (manual mode) | |
| color2 | No | Second color (manual mode) | |
| auto_detect | No | Auto-detect overlapping foreground/background color pairs in the document |