Why avatars matter
Avatars show who spoke before text does. People form impressions from 100 ms of a face (Willis & Todorov, 2006), so photos shape trust, though they may misrepresent (Hancock & Toma, 2009); add verification badges in marketplaces. Define size steps per visual hierarchy.
Without a photo
Use initials on colored backgrounds or patterned defaults (Gravatar, n.d.); identical grey silhouettes blur identities. Fall back to initials on load failure and reserve dimensions (MDN, n.d.). Keep color contrast.
Status and accessibility
Add shape or text to presence dots, show '+5' for stacks, use empty alt when the name is adjacent (W3C, n.d.) and the name otherwise, per WCAG 2.2 (W3C, 2023) 1.1.1 and 1.4.3. Expand tap areas to touch target sizes (Parhi et al., 2006).
FAQ
- How to pick initials colors?
- Derive from the name for consistency, with enough contrast.
- Is avatar alt text required?
- Empty alt when the name is adjacent; otherwise use the name.
Sources reviewed: 2026-10-27
References
- World Wide Web Consortium. (n.d.). Images tutorial. Web Accessibility Initiative. Decorative vs informative alt text.
- MDN Web Docs. (n.d.). <img>: The Image Embed element. Fallbacks and sizing.
- Gravatar. (n.d.). Gravatar developer documentation. Default avatar options.
- Willis, J., & Todorov, A. (2006). First impressions: Making up your mind after a 100-ms exposure to a face. Psychological Science, 17(7), 592–598. Fast face impressions.
- Hancock, J. T., & Toma, C. L. (2009). Putting your best face forward: The accuracy of online dating photographs. Journal of Communication, 59(2), 367–386. Photo accuracy and trust.
- Parhi, P., Karlson, A. K., & Bederson, B. B. (2006). Target size study for one-handed thumb use on small touchscreen devices. In Proceedings of MobileHCI 2006 (pp. 203–210). ACM. Tap areas for small avatars.
- World Wide Web Consortium. (2023). Web Content Accessibility Guidelines (WCAG) 2.2. Criteria 1.1.1 and 1.4.3.
