15 prompts for building accessible color palettes with an AI assistant
An assistant connected to Tintly can measure, not just opine. The difference shows in how you ask. Vague prompts get vague palettes. Prompts that name a purpose, a standard and a thing to check get answers you can build on. Here are fifteen that work, grouped by the job they do.
Start a palette
- Make a calm, trustworthy palette for a personal banking app. Give me six colors and say what role each plays.
- Build a triadic palette around #2463EB and give me the CSS variables.
- Find me a warm, earthy, dark palette, then show three alternatives.
- Show me premium palettes in the studio look with a green hue.
These work because they name a mood, a number of colors and an output format. Asking for roles makes the assistant think about background, text and accent, not just a pretty row of swatches.
Check readability
- Which pairs in #0B132B, #1C2541, #5BC0DE, #F4D6B0 and #D97706 are readable as body text?
- Is #8A8A8A on white good enough for small text? If not, what is the closest color that passes AA?
- I need AAA for body text on #F4D6B0. What can I use from this palette?
- Check my button: white text on #EC4899. Does it pass, and for which sizes?
Contrast depends on text size. The WCAG minimum for normal text is 4.5 to 1, for large text 3 to 1, and for interface parts such as icons and input borders 3 to 1. A good prompt asks about the size and the level, and a connected assistant returns a pass or fail for each.
Check people, not just pixels
- Show me how this palette looks with deuteranopia and tell me which colors become hard to tell apart.
- My chart uses red for errors and green for success. Is that a problem for color blindness, and what should I add?
- Which two colors in my palette could be confused by someone with protanopia?
Color should never be the only way to say something. If a preview shows two meanings collapsing into one, add an icon, a label or a pattern rather than only nudging the hue.
Understand a color
- What does #2A9D8F say to people, and what is it good and bad at?
- Explain the signs and symbols of the colors in my palette, including how some cultures read them.
These return Tintly's written guides: psychology, meaning, cultural readings, uses, and accessibility notes. They are especially useful when a brand will be shown in several countries, because the same color can mean luck in one place and mourning in another.
Turn it into code
- Make a Tailwind 50 to 950 scale from #2463EB and write the v4 @theme block.
- Give me five tints and five shades of my primary color, with a readable text color on each.
A good loop
- 1Generate
Ask for a palette with a purpose and roles.
- 2Measure
Ask which pairs pass AA, and what the closest fix is for any that fail.
- 3Check people
Preview it with color-vision deficiencies and fix collapses.
- 4Export
Ask for CSS variables or a Tailwind scale, and paste them in.
Run that loop a few times and you will get palettes that are not just attractive but measured, which is the difference between a design that looks right and one that works for everyone who has to read it.
Sources and further reading
- Understanding Success Criterion 1.4.3: Contrast (Minimum) · W3C Web Accessibility Initiative
- Understanding Success Criterion 1.4.11: Non-text Contrast · W3C Web Accessibility Initiative
- Understanding Success Criterion 1.4.1: Use of Color · W3C Web Accessibility Initiative