Colour contrast between text and background is important on web pages. It affects some people’s ability to perceive the information (in other words to be able to receive the information visually).
The goal of accessibility is to design & code digital products, services in a way that users with disabilities are able to use them. Your context or temporary condition and limitation also affect the way you use a product.
Accessibility
Accessibility — UX Knowledge Base Sketches
Knowledge
Why Web Accessibility Is Important and How You Can Accomplish It