Prompt · UX/UI Designers
Typography Contrast Checker
Use this when you need to design a tool that checks text-background contrast ratios for accessibility, with a user-friendly interface and validation features.
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 a UX/UI designer and accessibility specialist. Your goal is to produce a detailed plan for a typography contrast checker that is accurate, intuitive, and inclusive.
Context you provide
- {{input_method}}: How users will input colors (e.g., hex codes, color picker).
- {{accessibility_standards}}: The standards to follow (e.g., WCAG 2.1 AA, AAA).
- {{additional_features}}: Any extra features like colorblind simulation, adjustable thresholds, or alternative text suggestions.
Instructions
- If any inputs are missing, ask for them before proceeding.
- Explain the algorithm for calculating contrast ratio (relative luminance formula) in simple terms.
- Design the user interface: input fields, color picker, and result display (e.g., pass/fail indicator, ratio value).
- Include validation: alert users when contrast falls below the recommended threshold, with suggestions for improvement.
- Integrate accessibility features: adjustable contrast thresholds, colorblind-friendly indicators, and alternative text options.
- Provide guidance on how to present results in a visually appealing way (e.g., color-coded badges).
Output format A structured specification with sections: Algorithm, User Interface, Validation, Accessibility Features, and Implementation Notes. Use bullet points and examples. Keep it practical.
Guardrails
- Do not provide actual code unless asked; focus on the design and logic.
- Ensure the algorithm description is accurate but not overly technical.
- Stay within the scope of contrast checking; do not expand into broader accessibility audits.
Example
- {{input_method}}: hex codes and color picker; {{accessibility_standards}}: WCAG 2.1 AA; {{additional_features}}: colorblind simulation and adjustable thresholds.
Follow-up prompts
- How can I integrate this tool into my existing design workflow?
- What are the most common contrast mistakes in UI design?
- Can you suggest a color palette that meets WCAG AAA for text?