Check WCAG Accessibility
accessibility_checkAssess WCAG 2.1 contrast ratios and AA/AAA pass/fail grades between a foreground hex and a background color.
Instructions
Return WCAG 2.1 contrast ratios and AA/AAA pass/fail grades for a foreground hex against a background.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex_val | Yes | Foreground hex value | |
| background | No | Background hex (default 'FFFFFF') | FFFFFF |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| result | No | ||
| error | No |