How to Build an Accessible UI Color Palette
A practical workflow for choosing interface colors that are consistent, readable, and less dependent on hue alone.
Start with purpose and roles
Before selecting colors, define what the interface needs to communicate. Identify text, backgrounds, borders, primary actions, secondary actions, feedback states, and data visualization colors. A role-based palette is easier to use consistently than a collection of attractive but unrelated swatches.
Set contrast goals for text and controls
For WCAG 2.2 AA, normal text generally needs a contrast ratio of at least 4.5:1 against its background. Large text generally needs at least 3:1. Some interface components and graphical objects have additional non-text contrast requirements under other success criteria. Read the W3C contrast guidance and test actual pairs with the HexBloom color contrast checker.
Do not use color as the only signal
Pair red error states with clear text and an icon, not just a red border. Use direct labels or line patterns in charts. Make selected states visible through shape, border, or text changes as well as color. The WCAG Use of Color criterion explains why color must not be the only visual means of conveying information.
Review the palette with simulations
Try a color vision simulation to look for distinctions that may become harder to perceive. This is a review aid, not proof of accessibility. The HexBloom color blindness simulator lets you compare an original image with approximate protan, deutan, and tritan views.
Document tokens and test real states
Give colors semantic names and document where each token belongs. Test text, links, buttons, focus indicators, charts, disabled states, and dark themes in context. A palette is not complete until the combinations used in the product have been reviewed. For a developer workflow, use the CSS and Tailwind exporter and the design tokens guide.
A practical accessibility review checklist
- Check normal text and large text against every background where they appear.
- Check links, focus indicators, and essential control boundaries.
- Pair status colors with text or icons.
- Use direct labels, line patterns, or shapes in charts and maps.
- Review color vision simulations as a supplemental check.
- Test keyboard interaction, focus order, and visible states.
Record the exact component state and color pair you tested. A palette may pass for a large heading and still fail for small helper text or a disabled-looking control that users need to read.
Common palette problems and how to fix them
Low-contrast gray text is a frequent issue in minimalist interfaces. Increase its contrast or reserve the lighter shade for decorative elements. Red and green status colors can be difficult to distinguish for some users; add labels and icons. Thin colored borders may disappear against a similar surface; strengthen the boundary or add another visual cue. A dark-mode palette also needs its own review because colors that work on white may not retain the same contrast on dark backgrounds.
Frequently asked questions
What makes a color palette accessible?
An accessible palette uses readable contrast for text and important controls, and does not rely on color alone to communicate information.
Is WCAG contrast enough to make a design accessible?
No. Contrast is one important requirement. Keyboard access, focus visibility, labels, semantics, motion, and many other factors also matter.
Should every color in a palette have a semantic role?
For product interfaces, role-based tokens make a palette easier to apply and maintain. Use names such as text, surface, border, primary, and danger rather than relying only on color names.