contrast_check
Checks foreground and background color contrast ratio against WCAG AA and AAA standards for accessibility, returning pass/fail for normal and large text sizes and UI components.
Instructions
WCAG contrast ratio between a foreground and background color, for accessibility. Both accept a hex, CSS name, RNV brand name, or saved-palette reference. Returns the ratio (1.0-21.0) plus pass/fail for AA and AAA at normal and large text sizes and for UI components. Use this to check if text will be readable on a background.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| background | Yes | ||
| foreground | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||