Contents

WCAG contrast ratios measure how easily text and visual components can be distinguished from their backgrounds. Before publishing a color palette, designers and developers should test each meaningful pairing against WCAG 2.2 thresholds rather than relying on visual impression alone. PaletteBench provides browser-based tools for selecting colors, building palettes, and checking contrast ratios, but readers should verify current tool behavior directly on palettebench.online because some site-specific details are not confirmed by the supplied sources.
This article walks through the WCAG thresholds for text and non-text elements, how to capture colors from PaletteBench’s color picker, how to build and lock a palette before verification, how to run contrast checks, how to interpret pass and fail outcomes, and what WCAG contrast ratios intentionally do not cover. Use it as a planning and testing reference, not as a substitute for the official WCAG specification or live tool documentation.
WCAG contrast thresholds and which elements they cover
WCAG 2.2 establishes minimum contrast ratios so that text and user interface components remain perceivable for people with low vision or color-vision differences. The benchmark values normally tested are:
- Normal text: 4.5:1 for Level AA, 7:1 for Level AAA.
- Large text: 3:1 for Level AA, 4.5:1 for Level AAA.
According to PaletteBench’s stated guidance, large text means 18 pt or 14 pt bold. Non-text components such as user interface components and graphical objects generally require a minimum contrast ratio of 3:1 against adjacent colors under WCAG 2.2 success criteria covering visual presentation.
Readers should identify every text size and component role in their design before testing. A pairing that passes for a large heading may fail for body copy, and a button border that passes at 3:1 may not satisfy the higher text thresholds if it also carries readable text. Because this outline does not confirm every WCAG exception or edge case, readers should consult the official WCAG 2.2 specification to confirm which elements in their specific product are covered.
Practical decision before testing
Choose the conformance level your project targets—commonly AA—and list the text sizes and non-text components that need verification. Record the target ratio for each pairing so the contrast checker results can be compared against a single reference rather than judged case by case.
Using PaletteBench color picker inputs and outputs
PaletteBench’s color picker lets users choose a shade visually or enter a value directly. The tool keeps HEX, RGB, and HSL values in sync as the selection changes. Supported formats include HEX shorthand such as #RGB and full HEX such as #RRGGBB, RGB values from 0 to 255 for each channel, and HSL with hue from 0 to 360 and saturation and lightness from 0 to 100 percent.
When a color is selected, PaletteBench shows a live color preview and displays the value in formats such as #4338CA in the supplied example. The interface includes a copy function so the selected value can be captured in the needed format for downstream testing. Readers should copy the exact HEX string before moving to the palette generator or contrast checker to avoid transcription errors.
Workflow tip
Open the picker, adjust the color until it matches the intended design token, confirm the live preview looks correct, then copy the HEX value. If you plan to test multiple pairings, keep a temporary list of HEX values with labels such as "primary-button-text" or "card-background" so each value can be reused consistently across tools.
Building and locking a palette before contrast verification
The palette generator helps readers create coordinated color sets before running contrast checks. A typical workflow involves selecting a harmony or scheme, generating swatches, exporting a four-color palette, and locking individual swatches so they remain fixed while other colors are randomized or regenerated.
Locking a swatch means that color is excluded from automatic changes when the scheme or harmony is updated. This is useful when one brand color must stay constant and the reader wants to explore matching accent, background, or text colors around it. After locking the necessary swatches, export the four-color palette and record each swatch in HEX for contrast testing.
Unconfirmed behaviors
The supplied sources do not confirm the exact harmony options, the number of randomization rounds, whether locking persists across page reloads, or the precise export format beyond a four-color palette. Readers should test these behaviors directly in PaletteBench before depending on them in a production workflow. Treat locking as a convenience for manual exploration, not a guarantee that exported values will remain unchanged in future sessions.
Running contrast checks for text and component pairings
PaletteBench’s contrast checker requires a text color in HEX and a background color in HEX. After both values are entered, the tool displays the measured contrast result. Readers should enter the foreground or text color in the text field and the background color in the background field, then read the resulting ratio.
Compare the measured ratio against the applicable WCAG threshold:
| Text size | WCAG AA | WCAG AAA |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text | 3:1 | 4.5:1 |
For non-text components such as UI components and graphical objects, the commonly cited minimum is 3:1, but readers should verify the exact applicable criterion in WCAG 2.2 for each component type.
Example from the supplied notes
PaletteBench’s lab notes state that white text on #4338CA measures 7.90:1 and passes normal-text AA and AAA thresholds. This is a reported site-specific example, not a universal guarantee for every rendering environment. Readers should retest the same pairing in their actual product because font rendering, opacity, overlay colors, and background images can change the effective contrast.
Before you click check
Confirm that both colors are copied in full HEX format, not shorthand or RGB, because the checker is described as requiring HEX inputs. If either color uses transparency or a gradient, contrast testing becomes more complex and may require flattening the colors or testing against the worst-case background.
Interpreting pass/fail outcomes and deciding next steps
A pairing passes when its measured ratio is equal to or greater than the target threshold for the relevant text size and conformance level. If normal body text measures 4.5:1 or higher, it satisfies AA; if it measures 7:1 or higher, it satisfies AAA. Large text passes AA at 3:1 or higher and AAA at 4.5:1 or higher.
When a pairing passes AA but fails AAA, the reader must decide whether the project requires AAA conformance. If only AA is targeted, the pairing may be acceptable for that element. If AAA is required, increase contrast by lightening the background, darkening the text, adjusting saturation, or selecting a different hue pair, then retest. Small lightness changes can move a ratio across a threshold, so test iteratively rather than assuming a visual adjustment is sufficient.
Retesting rules
Always retest after any color change. A pairing that failed at one size may pass at a larger size, but do not rely on increasing font size as a substitute for fixing body-text contrast unless large-text criteria genuinely apply. Document the final passing values and the target conformance level so developers and reviewers can verify the same pairings later.
Questions to ask before publishing
- Does this pairing meet the target level for every text size where it appears?
- Does any text appear over images, gradients, or semi-transparent backgrounds?
- Have focus states, active states, and hovered components been tested separately?
- Are the approved HEX values recorded in the design system or style guide?
Scope limits: what WCAG contrast ratios do not cover
WCAG contrast ratio requirements do not apply to every visual element. Exclusions commonly cited include incidental text, logotypes, and purely decorative elements. Text that is part of a logo or brand name is generally not subject to the same contrast thresholds, nor is text that is invisible or purely decorative. Content outside the relevant success criteria may also be excluded.
Because these exclusions depend on context and the exact wording of WCAG 2.2, readers should not assume an element is exempt without checking the official specification. When in doubt, treat the element as requiring contrast verification.
WCAG contrast ratios also do not answer every accessibility question. They do not by themselves verify focus indicators, label clarity, error messages, non-color cues, or reading order. A color pairing can pass contrast and still be unusable if meaning is conveyed by color alone. Readers should test focus states, labels, and non-color cues separately and confirm that information is available through text, icons, patterns, or other sensory channels.
Planning advice
List every component in your interface and mark which ones are covered by contrast criteria and which might be excluded. For excluded items, document the reason for exclusion based on the official WCAG definition rather than visual judgment. For all other components, include contrast testing in the pre-publish checklist.

