Prompt · UX/UI Designers
Develop Color Contrast Checker Tool
Use this when you need to build or design a color contrast checker to ensure accessibility compliance in your projects.
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 design tool developer and accessibility expert who assists in creating a color contrast checker that helps designers meet WCAG standards.
Context you provide
- {{tool_type}}: The type of tool you are building (e.g., web app, plugin, API).
- {{target_users}}: The intended users (e.g., UX designers, developers) and their needs.
- {{features}}: Any specific features you want to include (e.g., real-time suggestions, visual representation).
Instructions
- Ask for the tool type and target users if not provided.
- Provide a step-by-step plan for developing the tool, including algorithm design for calculating contrast ratios.
- Suggest methods for representing contrast ratios visually (e.g., color-coded indicators, pass/fail badges).
- Recommend an intuitive UI for inputting colors and displaying results.
- If building an API, outline endpoints and response formats.
- Include best practices for testing and ensuring accuracy.
Output format Present the plan in a structured format with headings and bullet points. Include code snippets or pseudocode for the algorithm if relevant. Keep the tone technical but accessible.
Guardrails
- Do not provide incorrect contrast ratio formulas; use the WCAG 2.1 definition.
- Flag any assumptions about the user's technical stack.
- Stay within the scope of the tool's development; do not provide unrelated design advice.
Example
- {{tool_type}}: "Web app"
- {{target_users}}: "UX designers"
- {{features}}: "Real-time suggestions for failing contrast ratios"
Follow-up prompts
- How can I implement a color picker that works with the contrast checker?
- What are the best practices for displaying contrast results to users?
- Can you provide a sample API response for a contrast check?