Color is where "looks fine on my monitor" goes to die. Three checks I now run on every UI.
1. Contrast ratio (WCAG)
Body text needs at least 4.5:1 against its background (3:1 for large text, 18pt+ or 14pt bold). Light gray on white is the classic failure: #999 on #fff is only about 2.8:1. Run your palette through a contrast checker before shipping.
2. Color blindness
About 1 in 12 men has some color vision deficiency. If an error state is distinguished only by red vs. green, some users can't see it. Add an icon or text label, and preview your UI with a color blindness simulator.
3. Consistent palettes
Ad hoc hex values multiply fast. Generate a scale from one brand color with a palette generator, then map it to your design tokens. If you use Tailwind, convert colors to Tailwind config instead of hand-editing.
Quick checklist
- Text 4.5:1, UI components 3:1
- Never use color alone to convey meaning
- Test dark mode separately; contrast flips
- Check focus rings on every background
All of these tools run in your browser with no upload or signup. Disclosure: I'm the author of Web Developer Toolbox. What's your favorite accessibility check?
