Privacy

Review website contrast across default, hover, focus and disabled states

Check readable labels, meaningful control cues and keyboard focus across real interaction states, with scoped WCAG distinctions and an accountable repair record.

Made by Pagember · Editorial policy

Primary sources + editorial analysisPublished Updated Sources

The short answer

Check each control in every state readers can reach: default, hover, keyboard focus, selected, error and disabled. Measure the rendered text and background colors, including transparency or images, against the WCAG thresholds of 4.5:1 for ordinary text and 3:1 for large text. Keep visible focus and state cues, and test the real journey rather than one default screenshot.

On this page11 sections

Review a website control in every state that readers can encounter. A readable default button can become unreadable on hover if the background changes but its label does not. Keyboard focus, selected options, errors and disabled controls raise different questions from the initial screenshot.

Control tiles showing contrasting default, hover, focus and disabled appearances.

This guide uses official W3C WAI and browser documentation checked on October 13, 2026. It provides a focused contrast and interaction-state review, not a WCAG certificate or legal-compliance finding for a website. No color combination or real interface was measured for this guide.

Make an inventory of controls and states

Choose representative text links, primary and secondary buttons, icon controls, fields, checkboxes and selected navigation items. Record the page background and any alternative surface on which each component appears. The same button can need different surrounding-color checks in a white article and a tinted comparison panel.

StateWhat to inspectCommon missed detail
DefaultLabel, meaningful icon and control identificationA low-contrast secondary action is still active
HoverNew text, background and surrounding colorsOnly the background changed
Keyboard focusVisible indication and unobscured focused controlA ring is clipped or covered
Selected or errorMeaningful state cue and accompanying wordingColor is the only explanation
DisabledActual inactive behavior and understandable reasonA pale control is visually disabled but still operable

For a hypothetical booking form, test its initial state, the focused date field, an unavailable option and the correction after an error. This reveals different responsibilities from checking the submit button alone.

Measure text against its actual background

WAI's Contrast Minimum explanation describes 4.5:1 for ordinary text and 3:1 for qualifying large text, with stated exceptions. Large text is based on the criterion's size and weight definition; making a small label bold does not automatically qualify it.

Use the rendered foreground and background colors, including the effect of transparency or an image behind the text. A brand palette entry alone does not tell you the final pair. Test the weakest relevant background area when text crosses a gradient or variable photograph.

Record the ratio, text role, size/weight and state with the result. Do not round a value below a required threshold upward to call it a pass. If the text needs repair, adjust the relevant foreground/background treatment and recheck it rather than increasing all website type merely to seek a different threshold.

The typography guide covers reading size, zoom and spacing. A comfortable size and a sufficient contrast ratio are related design concerns with separate acceptance evidence.

Identify meaningful non-text information

WAI's Non-text Contrast explanation applies a 3:1 comparison with adjacent colors to visual information needed to identify active controls and their states, and relevant graphical objects, with exceptions. It does not require every decorative border or shadow to meet that ratio.

Ask what makes a control identifiable. A field may depend on its boundary; a checkbox depends on a discernible selected indicator; an image-only control may depend on its icon. Check the meaningful information and its actual adjacent colors rather than measuring an unrelated flourish.

Do not confuse this with a universal 3:1 comparison between a button's default color and its hover color. The criterion does not require those separate, non-adjacent states to contrast against each other. Each state must preserve the relevant information against its own surroundings.

Check hover without depending on it for access

Move the pointer over the control and inspect both text and background. A pale-blue button may use a blue label at rest, then acquire a darker blue background on hover. Leaving the same label color can reduce readability; choose and measure a coherent pair for the hovered state.

Also inspect links and icons nested in the control. A broad button rule may change its background while a more specific link rule retains another foreground. Repair the responsible component style instead of adding a global override that affects unrelated links.

Mozilla's hover media-feature reference distinguishes input mechanisms that can conveniently hover from those that cannot. Essential labels and actions should remain discoverable without a mouse-hover reveal. Verify the normal touch interaction as a separate route.

Keep keyboard focus visible and reachable

WAI's Focus Visible explanation requires a visible indication when an operable component has keyboard focus within its scope. Use Tab and Shift+Tab through the actual page and identify where focus lands. A hover color change is not a substitute for that keyboard feedback.

Mozilla's focus-visible reference explains browser heuristics for showing a focus indication. Preserve a reliable indicator when customizing it; removing the outline without a replacement can make the keyboard position disappear.

Inspect the indicator on every relevant surface and with hover and focus together. Clipping by a rounded container, an overflow rule or an overlay can make an otherwise strong ring invisible. Correct the boundary rather than merely making the ring thicker.

Focus Not Obscured Minimum addresses a focused component being entirely hidden by author-created content. Its Level AA requirement differs from the stronger preferred outcome of no obscuring. Review sticky headers and notices while tabbing and scrolling, not only a top-of-page screenshot.

Focus Appearance adds a separate Level AAA visibility criterion. Do not relabel its complete size/change requirements as the basic Focus Visible criterion or claim that passing one ring check establishes all focus-related requirements.

Communicate state with more than color

WAI's Use of Color explanation addresses information conveyed only through color. An error can include clear text and a meaningful relationship to the field; a selected option can use a discernible mark as well as a different fill.

In the hypothetical form, “Choose an available date” explains the correction more usefully than a red outline alone. A link in ordinary article text benefits from a clear visual link treatment rather than depending solely on a subtle hue difference.

Keep the full error and recovery route in view. The accessible-form review covers associated instructions, error discovery and truthful confirmation. Changing the error color cannot repair an unannounced or unreachable message.

Treat disabled controls as a real state

The contrast criteria contain exceptions for inactive controls. That does not turn every muted label, secondary button or read-only value into an exempt disabled element. Establish the actual interaction state before applying an exception.

Mozilla's disabled-attribute documentation distinguishes supported disabled controls from read-only controls and ordinary styled elements. Native disabled controls are not focusable or submitted with the form. A gray link is not disabled merely because it looks inactive.

Explain why a necessary action is unavailable and how to proceed through visible, reachable guidance. Check that the control becomes understandable and usable when enabled. An exemption is not a reason to make a user's next step impossible to discover.

Give a new palette roles before checking states

State checks are easier when each color already has a job. Before testing hover or focus, list the roles your design uses (page surface, card surface, body text, link, primary button, status message) and write down which foreground sits on which background. Measure those exact pairs with the implemented values, not a palette thumbnail.

A single swatch can pass with one partner and fail with another. Pale sage #B7D9CC with navy #16324F text gives about 8.61:1, comfortably above the 4.5:1 needed for ordinary text. White text on the same sage gives about 1.52:1, so sage works as a surface for dark text and not as a fill behind white labels. Record accepted pairs and banned uses (for example, “sage is a surface, never small text on cream”) in the design source, then check each one again in its hover, focus and disabled state.

If a palette came from an AI color tool or a brand kit with only color names, ask for hex values first, and treat any accessibility score it claims as unverified until you measure the pair yourself.

Use inspection tools and real interaction together

Chrome's CSS reference documents forcing pseudo-classes in the Styles panel. This helps hold hover, active or focus-visible styling while inspecting computed values. A forced state is useful styling evidence, not proof that keyboard focus actually reaches that element.

Run the real pointer, keyboard and touch routes after the style change. Check representative desktop and narrow layouts, long labels and relevant overlays. The mobile and keyboard navigation guide covers the wider menu journey.

Retain a component-level acceptance record

  1. Identify the component, surface and relevant interaction states.
  2. Measure applicable text and non-text contrast using the rendered colors.
  3. Check genuine keyboard focus, combined states and any obscuring content.
  4. Verify meaningful state cues and the actual disabled/enabled behavior.
  5. Repair the responsible shared style and retest representative uses.
  6. Record the observations and anything outside the focused review.

Use the launch checklist for the broader release. A useful result here is a set of readable, identifiable and understandable states with recorded evidence. A single clean scan or an attractive default screenshot cannot establish that the whole interaction works.