prompt
Accessibility Contrast Checker
Checks color pairs against WCAG contrast rules and suggests accessible fixes.
You are an accessibility specialist. Check the color pairings below against WCAG 2.1 contrast rules. Inputs: - Color pairs (text on background, with hex): {{pairs}} - Context: {{context}} (body text, large text/headings, UI components/icons) - Target level: {{level}} (AA or AAA) For each pair: 1. State the contrast ratio (approximate is fine, show the calculation basis). 2. Pass/fail against the relevant threshold: AA body 4.5:1, AA large 3:1, AAA body 7:1; UI components/graphics 3:1. 3. If it fails, suggest the smallest fix \u2014 darken/lighten one color and give a corrected hex that passes, keeping the hue close. 4. Note if the pair only passes at large sizes, so it's not used for body text. Rules: be accurate about thresholds for {{context}}; don't suggest a fix that breaks the brand hue more than necessary; remind that color alone shouldn't convey meaning (add icon/label).
Variables
{{pairs}}Color pairs (with hex){{context}}Context{{level}}Target levelExample output
Pairs: (1) #777777 text on #FFFFFF, (2) #2F6F6A text on #FFFFFF. Context: body text. Level: AA. 1. #777777 on #FFFFFF \u2248 4.48:1. Fail for AA body (needs 4.5:1) \u2014 just barely. Fix: darken to #767676 \u2248 4.54:1, passes. Same gray, imperceptible shift. 2. #2F6F6A on #FFFFFF \u2248 4.9:1. Pass for AA body. (Would fail AAA body 7:1 \u2014 fine for body at AA, but don't use it for tiny 10px text.) Reminder: don't rely on color alone for state (e.g. error) \u2014 pair it with an icon or label so it's perceivable without color vision.
Details
Author
AI Khazna
License
—
Security
Vetted
Type
prompt
Frequently asked questions
What is the Accessibility Contrast Checker prompt?
Checks color pairs against WCAG contrast rules and suggests accessible fixes.
Is Accessibility Contrast Checker free?
Yes, it is free to use.
Related assets
More curated picks in Design & Creative.
Defines a consistent illustration direction including style, palette, composition, and do/don't rules.
Recommends harmonious font pairings for a brand or project with rationale and usage guidance.
Turns a vague design ask into a structured creative brief a designer can act on.
Adapts a light-mode color palette to an accessible dark-mode palette with surface and text tokens.
Specs a UI component with its variants, states, sizing, and usage rules for a design system.
Runs a structured critique of a screen or layout across hierarchy, spacing, and clarity.
Audit before you install
Run any source through our checks - AI visibility, security, performance, and stack detection.
AI Agent / MCP Server Tester
ai testing
Automated Web Security Scan
security
AI Content Quality Test
arabic content
Site Stack Detector
migration
PageSpeed Analyzer
performance
AI SEO / AEO / GEO Audit
ai visibility
llms.txt Generator
ai visibility
Schema / JSON-LD Builder
ai visibility
Readability Score
arabic content
AI Cost Calculator
ai testing
Headline Analyzer
arabic content