check_contrast_ratio
Calculate WCAG 2.1 contrast ratio between two colors. Returns ratio and compliance for AA/AAA normal and large text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| background | Yes | Background color in hex (e.g., "#ffffff") | |
| foreground | Yes | Foreground color in hex (e.g., "#333333") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | ||
| AA_large | No | ||
| AAA_large | No | ||
| AA_normal | No | ||
| AAA_normal | No | ||
| background | No | ||
| foreground | No | ||
| ratio_text | No |