Three contrast checks a button needs, with numbers
Take an outline button: a 2px #3d5afe border and #3d5afe text on a white page. At rest the label sits on white, and #3d5afe on white measures 5.13:1. That passes the 4.5:1 WCAG asks for normal text. So far, so good.
Now hover. A common outline hover fills the button with its own colour at 10% opacity, so it lights up gently. Laid over white, that tint is a pale blue, and #3d5afe text on it measures 4.48:1. It looks almost identical to the resting state, yet it now fails by a hair. Nobody notices in a design review because the change is subtle, which is exactly why this tool measures the hover state too. The Blue outline preset uses a darker blue, #1d4ed8, which measures 6.7:1 at rest and 5.72:1 on hover.
The third check is the focus ring. WCAG 2.4.7 requires that keyboard focus is visible, and 1.4.11 asks for 3:1 contrast for the parts of a control people need to see. A light grey ring, #a0a0a0, on a white page measures 2.61:1; it is there, but many people will miss it. The presets use a dark navy ring, #1b1f3b, which measures 16.08:1 on white. Because the ring sits 2 pixels away from the button, it is measured against the page, not the button, so the same ring works on every button colour.
Order matters in the CSS as well. :hover, :focus-visible and :active all have the same specificity, so whichever comes last wins when two apply at once. The rules are written rest, hover, focus, then active, so a button that is hovered and pressed shows the press, and a focused button that is also hovered keeps its ring, because hover never touches the outline.
The limits. The checks read hex colours only; a named or oklch colour goes into the CSS but is not measured. They measure colour, not size, so very small text can be hard to read at a passing ratio. And the CSS styles one button class; disabled and loading states are left to you, because what they should look like depends on how your form behaves.