Color Contrast Checks Before Release: Text, States, and Real Screens
Color contrast is not only about a brand palette. Before release, check text, links, errors, focus indicators, button states, icons, and component boundaries in real screens.
Summary
- Contrast review should happen in real page states, including hover, focus, error, disabled, dark, and light backgrounds.
- Automated scans can catch some text contrast issues, but icons, borders, focus indicators, image backgrounds, and interaction states still need human confirmation.
- DevCheck can help with axe scans and visual simulations on the current page; it is not a dedicated color-picking or contrast-ratio calculator.
Start from real states, not only the design palette
Many contrast problems do not appear in the brand palette. They appear in the flow: a form error turns red, a button is hovered, a field receives focus, a link sits on an image or card background, a component becomes disabled, or the interface switches between dark and light modes.
Before release, the practical question is not only whether two color values pass a ratio. It is whether people can read the text, identify the component, understand the error, and find the focused element in the current screen state.
What should be checked together?
WCAG 2.2 includes Contrast (Minimum) for text and images of text, Non-text Contrast for components and meaningful graphics, and Use of Color so information is not conveyed by color alone. That makes contrast review broader than one text-ratio check.
- Text and backgrounds: body text, helper text, placeholders, and text shown on hover or focus.
- Links and interactive text: links should not rely only on color when they need to be distinguished from surrounding text.
- Components and states: buttons, inputs, checkboxes, radios, switches, selected, error, and focus states.
- Icons and boundaries: icons, control borders, focus rings, and meaningful chart lines or regions.
- Background changes: image backgrounds, gradients, cards, dark mode, light mode, and brand hero sections.
Automation helps, but it does not cover every state
Automated engines such as axe-core can catch some machine-detectable contrast issues, especially text and background combinations in the current DOM state. They may not see every hover state, dynamically opened menu, image background, custom icon meaning, or business state conveyed through color.
A more reliable workflow is to scan for obvious issues first, then have design, QA, and engineering review important states in real screens. When exact ratios matter, use a dedicated color picker or contrast-ratio tool to confirm the values.
Where DevCheck and UI Kit fit
DevCheck can run axe scans on the current browser page and provide color vision, text spacing, visual field loss, presbyopia, myopia, and cataract simulations for readability review. These are preliminary checking and discussion clues, not a full audit or legal compliance guarantee.
UI Kit CSS variables and component styles give teams a consistent customization surface, but tokens do not automatically guarantee contrast. The actual question is whether the component remains clear with real content, real backgrounds, and real states.
A practical pre-release sequence
Adding contrast to a release checklist does not need to start as a large process. Begin with a stable sequence for the main task pages.
- Open the main task flow in local development or staging.
- Run an automated scan and fix obvious text contrast issues first.
- Manually switch hover, focus, error, selected, disabled, loading, empty, and dark/light states.
- Check whether links, form errors, focus indicators, icons, borders, and charts rely only on color.
- When numeric evidence is needed, use a dedicated contrast tool to sample colors and record the ratio, then fix and re-test.
Related pages
- Accesserty DevCheck
Run browser-based checks on local builds, staging pages, authenticated screens, and interactive states.
- Web accessibility checker
Check real pages, authenticated states, and interactive states before release.
- WCAG compliance tool
Review WCAG A/AA issue clues, severity, affected elements, and remediation hints.
- Accesserty UI Kit
Use HTML-first Web Components to reduce repeated interaction defects.
- Accessibility testing guides
Browse guides by practical task: public signals, pre-release checks, post-launch maintenance, and standards limits.
- Color contrast glossary page
- Automated accessibility checks limits guide
- W3C Contrast Minimum
- W3C Non-text Contrast
- W3C Use of Color