Focus Indicator Contrast Checker for WCAG 1.4.11 and 2.4.13

Checks a focus indicator against WCAG 1.4.11 and 2.4.13 from colours, thickness and component size.

Use the tool

Why this tool exists

A focus ring that is thin or pale is invisible to many people.

Enter the ring colour, the colour next to it, the colour of the same pixels when not focused, the shape and size. The tool computes the contrast, the area of the indicator and the area of a 2 px perimeter, and states which test passes. 2.4.13 is Level AAA in WCAG 2.2.

How to use it

  1. Enter the indicator and background colours.
  2. Choose the shape, thickness and offset.
  3. Enter the component size.
  4. Read each pass or fail line.

Frequently asked questions

Is 2.4.13 required for AA?

No, it is AAA. 1.4.11 (3:1) and 2.4.7 are the AA rules.

What are unfocused pixels?

The pixels the indicator covers when the element is not focused, often the page background.

Does it handle double rings?

Check each colour against its own neighbour separately.

Is the data sent?

No.