WCAG
International guidelines for the accessibility of Web content
Full explanation The initials of Web Content Accessibility Guidelines. The guidelines are published by W3C. The contrast ratio formula and the thresholds 4.5, 3 and 7 are written in them, so any tool that implements the formula should arrive at the same number.
Why remember it The source of the formula and of the thresholds
Where it appears in the post