check_color_contrast
Evaluate foreground and background color combinations for compliance with WCAG contrast standards. Input color values in various formats, font size, and boldness to ensure accessibility.
Instructions
Check if a foreground and background color combination meets WCAG contrast requirements
Input Schema
Name | Required | Description | Default |
---|---|---|---|
background | Yes | Background color in various formats (e.g., "#FFFFFF", "#FFF", "rgb(255,255,255)", "hsv(0,0%,100%)") | |
fontSize | No | Font size in pixels | |
foreground | Yes | Foreground color in various formats (e.g., "#000000", "#000", "rgb(0,0,0)", "hsv(0,0%,0%)") | |
isBold | No | Whether the text is bold |