# Accessibility Checks for Visual Analysis WCAG 2.1 AA compliance criteria for LLM-powered screenshot analysis. ## Overview When analyzing screenshots, check for these accessibility violations. This guide follows WCAG 2.1 Level AA standards. ## 1. Color Contrast ### Minimum Contrast Ratios **Text:** - Normal text (< 18pt or < 14pt bold): **4.5:1** - Large text (≥ 18pt or ≥ 14pt bold): **3:1** **UI Components:** - Form inputs, buttons, icons: **3:1** against background ### Common Violations in Screenshots ``` ❌ Light gray text on white background (2:1 ratio) ✅ Dark gray #595959 on white #FFFFFF (7:1 ratio) ❌ Blue link #4A90E2 on light blue #E8F4FF (1.8:1 ratio) ✅ Blue link #0066CC on white #FFFFFF (8.2:1 ratio) ❌ Gray placeholder text #CCCCCC on white (1.6:1 ratio) ✅ Gray placeholder text #757575 on white (4.6:1 ratio) ``` ### Visual Indicators When analyzing screenshots, look for: - Pale or faded text that's hard to read - Low-contrast buttons that don't stand out - Links that blend into surrounding text - Disabled states that are barely distinguishable ## 2. Text Size and Readability ### Minimum Font Sizes - Body text: **16px** minimum (1rem) - Small text acceptable: **14px** for secondary content - Avoid: Text smaller than **12px** (fails WCAG) ### Common Violations ``` ❌ Body text at 12px - too small for many users ✅ Body text at 16px or larger ❌ Mobile text at 10px - illegible on small screens ✅ Mobile text at 14px minimum ❌ Long paragraphs with no line height spacing ✅ Line height 1.5x for body text (e.g., 16px text with 24px line height) ``` ### Visual Indicators - Text that appears squished or compressed - Long lines of text with minimal spacing - Tiny labels on buttons or form fields ## 3. Focus Indicators ### Requirements All interactive elements must have **visible focus indicators**: - Minimum **2px** outline or border - Contrast ratio of **3:1** against background - Clearly visible when tabbing through interface ### Common Violations ``` ❌ No visible outline when button is focused ✅ Blue 2px outline appears on focus ❌ Focus outline same color as background (invisible) ✅ High-contrast focus outline (e.g., black on white) ❌ Focus state only indicated by subtle background color change ✅ Focus state with outline + background color change ``` ### Visual Indicators in Screenshots Look for: - Focused element (if screenshot captures tab state) - Absence of visible outline or border - Focus indicator that's too subtle or low-contrast ## 4. Form Labels and Instructions ### Requirements - Every form input must have a visible **