Forms, colour and motion · mid
Colour contrast, target size and reduced motion
Text needs a contrast ratio of at least 4.5:1 (3:1 for large text), UI parts and focus rings 3:1, information must not rely on colour alone, touch targets should be at least 24x24 CSS px (WCAG 2.2 AA), and animations should respect prefers-reduced-motion.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Contrast ratio = (L1 + 0.05) / (L2 + 0.05) using relative luminance; ranges from 1:1 to 21:1. Normal text >= 4.5:1, large text (18pt / 24px, or 14pt / ~18.7px bold) >= 3:1 (1.4.3 AA).
- Non-text contrast (1.4.11 AA): input borders, icons that carry meaning, focus indicators and chart lines need 3:1 against neighbours.
- Use of colour (1.4.1 A): don't show errors, required fields, stock status or chart series by colour only; add text, icons or patterns.
- Target size (2.5.8 AA): pointer targets at least 24x24 CSS px or spaced so a 24 px circle around each doesn't overlap another. Platform guidance is bigger (about 44pt iOS, 48dp Android).
- Motion: @media (prefers-reduced-motion: reduce) { ... } to remove parallax, large zooms and auto-playing motion; auto-moving content over 5 seconds (carousels) needs pause/stop (2.2.2 A); nothing should flash more than 3 times per second.
- Also support zoom/reflow to 400% (1.4.10) and text spacing changes; test dark mode and forced-colors (Windows High Contrast) for invisible borders.
The red pen
Common traps: mistake → fix
Mistake: "Light grey #999 text on white is fine for secondary text"
Fix: it is about 2.85:1 and fails 4.5:1.
Mistake: "Reduced motion means remove all animation"
Fix: remove or soften large, vestibular-triggering motion; small fades are usually fine.
Mistake: "Disabled-looking low contrast is OK for active buttons"
Fix: only truly inactive components are exempt.
Easy to hard
Questions interviewers ask, easy to hard
- What contrast ratios does WCAG AA require?
- How do you show form errors without relying on colour?
- How do you respect reduced-motion preferences in CSS and in JS animations?
- Design tokens: how would you make a colour system that always passes contrast?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.