What the tool computes
Give it two colors — a background and a foreground, each by picker or as 3- or 6-digit hex — and it computes the WCAG 2.x contrast ratio: the relative luminance of the lighter color plus 0.05, divided by the same for the darker one. The scale runs from 1:1 (identical colors) to 21:1 (black on white), shown to two decimals.
The same number is judged against four thresholds at once, each with a Pass or Fail badge: 4.5:1 for AA normal text, 3:1 for AA large text, 7:1 for AAA normal text and 4.5:1 for AAA large text. A live preview renders your foreground as sample text and as an inverted button label on the background, so you see both the pair and the number behind the verdicts.