Skip to content

Text, Icons, and Controls: What Needs Contrast Testing with PaletteBench Online

AI-generated illustration; not taken on location · A conceptual diagram of a contrast checker showing HEX value inputs and WCAG AA/AAA pass or fail results for different text and UI element sizes.

Contents
AI-generated illustration; not taken on location · A conceptual diagram of a contrast checker showing HEX value inputs and WCAG AA/AAA pass or fail results for different text and UI element sizes.
AI-generated illustration; not taken on location · Illustration of contrast testing workflow for text, icons, and controls against WCAG accessibility thresholds.AI-generated illustration

PaletteBench Online provides three browser-based tools to help you test colors before you apply them in interfaces: a color picker for choosing and copying shades, a palette generator for building harmonies and locking swatches, and a contrast checker for verifying foreground and background pairings against WCAG thresholds. Understanding what needs contrast testing—and what does not—lets you focus verification where accessibility requirements actually apply. The contrast checker accepts foreground and background HEX values and reports whether normal text, large text, icons, and graphical objects pass WCAG AA and AAA thresholds, including inactive, decorative, and logotype exclusions. Normal text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1 for AA and 4.5:1 for AAA; active user interface components and graphical objects such as icons need at least 3:1. Incidental text such as inactive controls, logotypes, and purely decorative text has no contrast requirement. The following sections walk through each tool’s inputs, outputs, and practical decisions, then cover result interpretation, state-by-state testing, and exemptions.

What the color picker does

The color picker is where a reader begins when preparing colors for contrast testing. It lets users select a shade visually or enter a color value directly, and it keeps HEX, RGB, and HSL representations in sync so the same shade can be described in whichever format a downstream tool expects.

The selected color appears as a live preview and can be copied in the needed format. A reader can send that color from the picker to the contrast checker, or randomize the starting point to build a new harmony. This matters because contrast testing usually begins with choosing candidate foreground and background shades before entering them as HEX values in the pairing tool.

A practical decision point is which value format to copy. If the contrast checker accepts HEX input, copying the HEX value keeps the workflow direct. If another tool or design file expects RGB or HSL, the picker’s synced values let the reader switch formats without re-picking the shade. Readers should verify the exact input format required by each tool before testing.

What the palette generator does

The palette generator helps users create coordinated color schemes before checking contrast pairings. Users can send a color from the picker into the generator or start from a randomized color, then choose a harmony type such as complementary, analogous, triadic, or tetradic. The tool updates swatches to reflect the selected scheme and keeps values synchronized so each color can be copied in its needed format.

Once a harmony is chosen, any swatch can be locked to preserve it through scheme changes and randomization. Locked swatches remain fixed while unlocked colors continue to adjust with the chosen harmony or new random starting points. Users can unlock a swatch later to explore alternative combinations. This workflow lets a design team anchor brand colors while testing supporting accent and background shades.

Prepared palettes can then be moved into the contrast checker as foreground and background HEX pairings. Locking does not guarantee accessibility by itself; every meaningful text, icon, interface component, or graphical object pairing should still be verified against the applicable WCAG threshold. Users should also test states separately rather than assuming a base palette pairing remains acceptable on hover, focus, active, disabled, or error contexts.

What the contrast checker tests

The contrast checker compares a foreground HEX value against a background HEX value and reports whether the pairing meets WCAG contrast thresholds for normal text, large text, icons, graphical objects, active user interface components, and other visible elements. Normal text must reach at least 4.5:1 for WCAG AA and at least 7:1 for WCAG AAA. Large text, defined as 18 point or 14 point bold, must reach at least 3:1 for AA and at least 4.5:1 for AAA. Active user interface components and graphical objects such as icons and graphs need at least 3:1 contrast, and no AAA threshold is defined for them. Inactive controls, logotypes, and purely decorative text have no WCAG contrast requirement because they are considered incidental text rather than essential content.

Readers should use the tool to verify pairs such as body copy on a page background, link text against its surrounding color, button labels on button backgrounds, error message text, icon strokes on control backgrounds, and graph lines or segments against neighboring chart colors. Because each pairing is independent, a passing result for one text size does not automatically mean another size passes. The checker can copy results so readers can record the foreground and background values, the measured ratio, and whether AA or AAA was met.

States such as hover, focus, active, disabled, and error conditions should be checked separately whenever their colors change. A color that passes in the default state may fall below the required ratio when the component changes appearance. Focus indicators and interactive components must maintain at least 3:1 contrast against adjacent colors, and state changes should not be communicated by color alone; if color is the only difference, it should meet 3:1 or be accompanied by another visual cue. Disabled controls can remain visually distinct even though they are exempt from WCAG contrast requirements.

The output helps readers decide whether to adjust the foreground, background, font size, or element styling before publishing. It does not replace checking labels, focus states, and non-color cues, which also contribute to accessible interfaces.

How to interpret pass/fail results

Interpreting a contrast result means matching the element type and size to the correct threshold before deciding whether the pairing needs adjustment.

Normal text is the strictest category. A pairing passes WCAG AA at 4.5:1 or higher and AAA at 7:1 or higher. Large text can meet the bar more easily because it requires 3:1 for AA and 4.5:1 for AAA. Under PaletteBench Online’s definition, large text is 18 pt or 14 pt bold. Readers should therefore check the rendered size of every heading, label, and paragraph instead of assuming that all body text counts as normal text.

Active user interface components and graphical objects such as icons, buttons, input borders, and graphs need at least 3:1 contrast against their background or adjacent colors. No AAA threshold is defined for these non-text elements, so a passing result means meeting AA-level 3:1; there is no higher AAA tier to target.

A result such as white text on #4338CA measuring 7.90:1 passes both normal-text AA and AAA. Readers can copy the displayed result from the contrast checker, including the measured ratio and AA/AAA status, for use in design reviews or accessibility documentation. Even when a color pairing passes, users should still verify focus states, visible labels, and non-color cues, because contrast alone does not guarantee that state changes are perceivable.

When a pairing fails, the practical decision depends on the element: increase the contrast between foreground and background, switch to a larger or bolder font size where appropriate, add an outline or shadow, or choose a different color combination entirely. Because pass/fail status changes with text size, the same HEX pair might pass for a large heading but fail for body copy, so each pairing should be retested in its actual context rather than reused across all text sizes.

Result categories by element type

Element type WCAG AA WCAG AAA Notes
Normal text 4.5:1 7:1 Applies to most body text and small labels
Large text (18 pt or 14 pt bold) 3:1 4.5:1 Check actual rendered size before classifying
Active UI components 3:1 Not defined Includes buttons, input borders, and controls
Icons and graphs 3:1 Not defined Graphical objects conveying meaning
Inactive controls No requirement No requirement Exempt, though visual distinction is still recommended
Logotypes No requirement No requirement Brand text is exempt
Purely decorative text No requirement No requirement Text with no informational purpose

States and contexts to test separately

Designers should test each visual state individually rather than assuming one contrast result covers every situation. A button that passes as a default control may fail once it enters hover, focus, active, disabled, error, or grayscale contexts. Foreground colors, background colors, and adjacent border colors can all change at different times, so the pairing that matters is the one actually visible in each state.

Interactive components should keep at least 3:1 contrast against adjacent colors in their active state. Focus indicators also need this contrast level. If a state change is communicated by color alone, that color change should meet 3:1 or be paired with another visual cue such as an underline, icon, border change, or text label.

Disabled controls do not have a WCAG contrast requirement, but they should still look distinct from active controls so users do not mistake an unavailable button for an enabled one. Testing disabled states separately helps prevent confusion even when the accessibility standard does not enforce a ratio.

Error states deserve their own check because error text, icons, borders, and background fills often introduce new color pairings. A form field may pass in its default state but fail when the border turns red and the error message appears beneath it.

Grayscale or high-contrast operating-system modes can override author colors. When possible, verify that critical controls remain distinguishable without relying on the original palette. Readers can use the contrast checker by entering the HEX values observed in each state and comparing the result against the relevant threshold.

Practical questions to ask before shipping:

  • Does the hover state pass against the page background?
  • Does the visible focus indicator pass against both the component and its surrounding background?
  • Is the active state visually separate from the default state?
  • Does the disabled control remain recognizably different from an enabled control?
  • Do error messages and error borders pass against their backgrounds?
  • Are state changes reinforced by non-color cues when color alone would otherwise carry the meaning?

What is exempt from contrast testing

Some text and controls do not need to meet WCAG contrast thresholds even though they appear on screen. Purely decorative text that conveys no information or functionality is exempt. Logotypes and brand names included as text are also exempt because their visual identity is often part of the logo itself rather than a readability requirement. Inactive or disabled controls that cannot be used are exempt from contrast requirements, although they should still remain visually distinct from active controls so users can tell the difference between something that cannot be interacted with and something that can.

Images containing significant other visual content may be exempt when text is incidental to a larger picture, such as a logo embedded in a photograph or a brand mark within a product image. If the surrounding visual content already communicates the meaning, contrast testing for the text alone is not required. However, any text that communicates essential information, labels an interactive control, or appears as standalone body copy should still be evaluated.

Exemption does not mean that no thought is needed. Designers should verify whether an item truly qualifies before skipping testing. Inactive controls can look similar to disabled states in some interfaces, so confirm the component’s current state before deciding it is exempt. Decorative text should serve no informational purpose; if it labels a section or names a feature, it likely needs contrast testing.

When color alone indicates state or meaning, additional visual cues are necessary even if formal contrast rules do not apply. A disabled button that differs only through color may still confuse users who cannot perceive that color change. Pairing color with shape, pattern, icons, or text labels helps maintain clarity regardless of whether contrast thresholds apply.

A practical workflow is to list every text element and control on a page, mark which ones are informational or interactive, and then apply contrast checks only to the items that communicate meaning or enable interaction. For anything marked decorative, inactive, or part of a logotype, document the reason for exclusion so reviewers can confirm the decision later.

Official references