Chapter #59. 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" (or WCAG). They were revised and updated to "WCAG 2.0" in 2008, with the guidelines stating that "websites must be perceivable, operable, understandable, and robust."
The guidelines are extensive and detailed, and go way beyond the scope of this book, but some key elements from them are great best-practice guidelines to incorporate into your UX work.
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.
There are some exemptions and caveats around logos and especially large text, but the "golden rule" contrast ratio of 4.5:1 is one to live by. See the three example buttons below. The low-contrast button would be really hard to use for partially-sighted people...