check_color_contrast
Calculate WCAG contrast ratio between two hex color values to ensure accessible text readability.
Instructions
Check WCAG contrast ratio between two colors for accessibility.
Parameters:
foreground — Foreground hex color (without #).
background — Background hex color (without #).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foreground | Yes | ||
| background | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |