Contrast Ratios Are Your Friends
Way back in 1999, the World Wide Web Consortium (W3C), the main international standards organization for the internet, published the catchily-titled Web Content Accessibility Guidelines (WCAG). They were revised and updated to “WCAG 2.0” in 2008 (WCAG 3 is currently in “Draft” state), with the guidelines stating that “websites must be perceivable, operable, understandable, and robust.”
The guidelines are extensive and detailed, and go beyond the scope of this book, but some key elements from them are great best-practice guidelines to incorporate into your user interface to improve the UX for everyone—not just for disabled people.
One great guideline is that on contrast:
1.4.3 Contrast (Minimum): The visual presentation of text and images of text has a contrast ratio of at least 4.5:1.
- Understanding Success Criterion 1.4.3: Contrast (Minimum) https://www.w3.org/WAI/WCAG21...