According to WCAG 2.1 A/AA, the minimum color contrast ratio…