Visual aesthetics mean nothing if users with low vision or color vision deficiencies (CVD) cannot read the content. The W3C Web Content Accessibility Guidelines (WCAG 2.2) mandate mathematical contrast ratios between text and its background:
Never rely on color alone to communicate state (e.g., always accompany an error red border with an icon and an explicit text message).
Level 1 · Getting Started with UX Design