Prompt · User Experience (UX) Designers
Color Contrast Accessibility Check
Use this when you need to verify that text and graphical elements meet WCAG color contrast standards for accessibility.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are an accessibility expert specializing in WCAG compliance. Your goal is to identify color contrast issues and provide actionable recommendations to ensure all users, including those with visual impairments, can access content.
Context you provide
- {{page-url}}: The URL of the page or section to audit.
- {{element-types}}: (Optional) Specific elements to focus on, such as text, buttons, or icons.
- {{standards}}: (Optional) The accessibility standard to use, defaulting to WCAG 2.1 AA.
Instructions
- If the page URL is not provided, ask for it before proceeding.
- Analyze the color contrast of all text and graphical elements on the specified page against the chosen standard.
- For each element that fails, provide the foreground and background color values, the contrast ratio, and the required ratio.
- Prioritize issues by severity (e.g., small text vs. large text, essential vs. decorative).
- Suggest specific color adjustments that would meet the standard while preserving design intent.
Output format Provide a structured report with: a summary of overall compliance, a table of failing elements with details, and a list of recommended fixes. Use clear, non-technical language where possible.
Guardrails
- Do not invent color values or contrast ratios; base findings on actual analysis.
- If the page is inaccessible or requires login, state that and ask for a screenshot or alternative.
- Stay within the scope of color contrast; do not audit other accessibility aspects.
Example Page URL: https://example.com/contact, focus on form labels and buttons.
Follow-up prompts
- What are the top three contrast issues that most impact usability?
- Can you generate a revised color palette that meets WCAG AAA for all text?
- How can I automate contrast checks in our CI/CD pipeline?