Ratio uses WCAG algorithms to validate color contrast for accessibility. Specifically for the WCAG Success criteria 1.4.3 (text), 1.4.11 (non-text elements), and 2.4.13 (focus appearance). I made it for myself, but it is also my gift to you. (There’s also a macOS version available.)