How is the WCAG contrast ratio calculated?
The Web Content Accessibility Guidelines measure contrast as a ratio from 1:1, no contrast, to 21:1, black on white. The ratio uses the relative luminance of each color, a weighting of red, green and blue that matches how bright they appear.
What is the minimum contrast ratio for WCAG AA?
Level AA asks for 4.5:1 for normal text and 3:1 for large text and for interface parts such as icons and input borders. Level AAA asks for 7:1 and 4.5:1.
Does #767676 pass WCAG AA on white?
Yes, just: #767676 on white reaches 4.54:1 and passes, while #777777 reaches 4.48:1 and fails. Many common grays sit right at that edge.
To fix a failing pair, change lightness and keep hue and chroma; the contrast checker does exactly that and offers the closest passing color.