To repeat the same WCAG color-contrast result, test the identical foreground and background colors in exact HEX form and evaluate the same text or interface category each time.
Start with the Color Contrast Checker. Its result comes from a deterministic WCAG 2.x calculation, so the same color pair produces the same ratio regardless of which color is entered first. The numerical ratio depends only on the two colors; the content category and WCAG threshold determine which pass/fail badge applies, not the ratio.

What Makes a Contrast Result Repeatable
A repeatable check depends on three details: the exact foreground color, the exact background color, and the classification of the content being tested. For example, normal text, large text, and a form-field border do not use the same target. Preserving the input pair while changing the category can change the badge without changing the numerical ratio.
The checker converts each sRGB channel from gamma-encoded color into linear light. It then combines those channels into relative luminance with weights of 0.2126 for red, 0.7152 for green, and 0.0722 for blue. The final contrast ratio is calculated as (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color’s luminance and L2 is the darker color’s luminance.
Because this calculation depends on the color values rather than their order, swapping foreground and background produces the same ratio. The possible range runs from 1:1 for identical colors to 21:1 for pure black on pure white. Exact HEX entries remove the uncertainty that can come from visually estimating a color with a picker.
Repeat a Check with the Color Contrast Checker
- Record the final color pair. Write down the foreground and background as six-digit HEX values, including the leading hash. Use the solid colors that appear in the design rather than an approximate color description.
- Set the foreground color. Open the checker and enter the text color with the color picker or by typing its HEX value, such as #111111.
- Set the background color. Enter the second color in the same way, for example with #ffffff. Do not change either field while comparing an earlier result with a later run.
- Read the ratio and all relevant badges. Identify the result for normal text, large text, or UI components and graphics. Note the contrast ratio and the pass/fail result for each relevant threshold.
- Adjust a failing color deliberately. If the pair does not meet your target, change the foreground or background, rerun the check, and record the new values with the new outcome.
- Re-enter the saved pair to verify it. Type the recorded HEX values into the two fields again and compare the ratio and badge with the first run. This confirms that your record is sufficient to reproduce the check.
All processing happens locally in your browser, so color values do not need to be uploaded. Keep a separate written record anyway: the tool’s calculation is repeatable, but an audit should not depend on keeping one browser tab open.
Record the Inputs, Not Just the Badge
A screenshot showing “Pass” does not show every condition needed to repeat the result. Record the inputs and the applicable thresholds together so another person can reconstruct the check.
| Field to record | What to save | Why it matters |
|---|---|---|
| Foreground | Exact HEX value | Prevents an approximate picker selection from replacing the original color. |
| Background | Exact HEX value | Identifies the second half of the color pair. |
| Content context | Normal text, large text, or UI/non-text | Determines which WCAG threshold applies. |
| Target | AA, AAA, or the 3:1 non-text rule | Explains which pass or fail badge you expected. |
| Outcome | Ratio and relevant badge | Provides an audit record that can be reproduced later. |
A useful record follows this format: foreground HEX, background HEX, text classification, target threshold, contrast ratio, and result. For a reusable brand palette, add the component or token name so similar-looking colors are not confused with the exact pair that was tested. The Color Contrast Checker for Web Design: Design System Tips guide provides additional guidance for organizing palette-level checks.
Keep the Same WCAG Threshold
The ratio is only one part of the result. The badge depends on what the colors are being used for. WCAG defines large text as at least 18pt, or 24px, for regular weight, and at least 14pt, or about 18.66px, when bold.
| Content type | Minimum ratio | Conformance meaning |
|---|---|---|
| Normal text | 4.5:1 | WCAG Level AA |
| Normal text | 7:1 | WCAG Level AAA |
| Large text | 3:1 | WCAG Level AA |
| Large text | 4.5:1 | WCAG Level AAA |
| UI components, icons, and graphical objects | 3:1 | Separate non-text contrast requirement |
For example, a 4.5:1 pair can pass the normal-text AA threshold and the large-text AAA threshold at the same time. That does not make the ratio ambiguous; it reflects two different rules applied to one color pair. Use the same content classification each time you want to reproduce a badge. The W3C guidance on WCAG 2.1 minimum contrast provides the underlying standard for these text thresholds.
Resolve a Result That Changes Between Runs
If the numerical ratio changes, the effective color pair probably changed. If the ratio stays the same, make sure you are comparing the same category and threshold rather than a different badge. Check these distinctions before treating the difference as a checker error.
Recheck both color fields
Compare the saved HEX values character by character with the current entries. A color selected by eye may look like the original but represent a different value. Also check whether a theme, hover state, animation, or responsive layout substituted another color. The order of the two colors is not the cause because the ratio is symmetric.
Confirm the text category
Verify the actual font size and weight before applying the large-text threshold. Text that only looks large may remain below the defined size. Likewise, a border or icon should be evaluated under the non-text rule rather than the normal-text rule.
Resolve changing or blended backgrounds
The checker compares one flat foreground color with one flat background color. It does not calculate a changing composite across a gradient, semi-transparent overlay, or image. Resolve the effective displayed color for each relevant area, or test separate samples from the lightest and darkest points where the text appears.
Separate calculation from visual appearance
Display settings, ambient light, and screen quality can affect how a color pair looks without changing its calculated ratio. If another source reports a different number, confirm that it is using the same two color values and WCAG formula. For a fuller diagnostic process, see Fix a Wrong WCAG Color Contrast Checker Result.
Confirm the Repeated Result in the Real Interface
A successful repeat confirms that the flat color pair meets the relevant threshold. It does not prove that every rendered use of those colors is accessible, because the checker does not inspect an entire webpage or evaluate every interface state.
- Check each relevant state. Review body text, links, button labels, error messages, form-field borders, icons, and focus indicators rather than testing only the default state.
- Sample dynamic backgrounds. For gradients, transparent layers, or text over images, test the lightest and darkest effective background points where a letter can appear.
- Review common weak spots. Placeholder text, disabled states, and thin decorative fonts deserve a separate review.
- Do not rely on color alone. Pair color changes with text labels, icons, or underlines so meaning remains available to users who cannot distinguish the hues.
The reliable repeat method is straightforward: preserve the exact foreground and background HEX values, identify the same content category, compare the same relevant threshold, and record both the ratio and badge. Then inspect the actual interface to confirm that the colors behave as intended where users will encounter them.