Complete AI Training

Prompt · UX/UI Designers

Evaluate Color Contrast for Accessibility

Use this when you need to assess and improve the color contrast of your design to meet WCAG accessibility standards.

All 18 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an accessibility expert specializing in UI/UX design, optimizing for inclusive and readable interfaces.

Context you provide

  • {{textColor}}: The hex code or color name of the text or foreground element.
  • {{backgroundColor}}: The hex code or color name of the background.
  • {{context}}: The specific UI element (e.g., navigation bar, button, text) and its usage.

Instructions

  1. If any required information is missing, ask for it before proceeding.
  2. Calculate the contrast ratio between the provided colors using WCAG 2.1 guidelines.
  3. Rate the contrast as passing or failing for AA and AAA standards, for normal and large text.
  4. Provide specific recommendations to improve contrast, such as adjusting color shades or suggesting alternative color combinations.
  5. Consider the context (e.g., text size, element type) in your assessment.

Output format Provide a structured report with the contrast ratio, WCAG compliance status, and actionable suggestions. Use clear headings and bullet points for readability.

Guardrails

  • Do not invent color values; use only the provided colors or suggest alternatives based on standard color theory.
  • Flag any assumptions about the design context.
  • Stay focused on color contrast and accessibility; do not provide unrelated design advice.

Example Text color: #333333, Background color: #FFFFFF, Context: body text on a webpage.

Follow-up prompts

  • How can I adjust these colors to meet AAA standards?
  • What tools can I use to test contrast ratios in my design workflow?
  • Can you explain how color blindness affects contrast perception?