What are the contrast requirements for an element’s focus, mouseover & select states?


I'm working on updating my focus, mouseover (hover) & select (active) states and want to make sure that my new design meets contrast requirements. What are the contrast requirements for these different states?


When designing an interactive element, it needs to meet 3:1 contrast ratio with adjacent colors. You need to maintain 3:1 contrast ratio during all of that elements states (focus, hover, active, etc). The requirement doesn’t mean that states need to contrast 3:1 with each other. For instance, an element's hover state does not need to contrast 3:1 with its focus state, or even its resting state. Requirements like this are beginning to take shape with WCAG 2.2, 2.4.11 Focus Visible (Enhanced). For now, you just need to make sure that each state of an element meets the 3:1 contrast ratio with adjacent colors, and are “distinguishable enough” from each other so users are aware of their interactions with the element (focusing, hovering, etc). 

Need help monitoring your website for accessibility issues?

Perform up to 10,000 free accessibility scans with a trial of Accessible Web Console.