Check whether the text in an AI-generated design is actually readable by listing every text color with its background color, calculating each contrast ratio, and comparing it with 4.5:1 for body text and 3:1 for large text; anything below its mark needs a darker text color or a plainer background before you publish.
An AI-generated design can look calm and polished while its text is hard to read. The W3C page for this rule puts the problem plainly: “Some people cannot read faint text.” Its intent is that text can be read by people with moderately low vision or impaired contrast perception, without contrast-enhancing assistive technology. A pale grey caption, white words on a bright photograph, or a light button label can all pass a quick glance and still fail the reader.

What counts as passing
The W3C Understanding page for Success Criterion 1.4.3 Contrast (Minimum) states the rule as follows: the visual presentation of text and images of text has a contrast ratio of at least 4.5:1, except that large-scale text has a contrast ratio of at least 3:1. Large text is 18 point text, or 14 point bold text. The same page says the 3:1 and 4.5:1 ratios are threshold values and should not be rounded: 4.499:1 would not meet the 4.5:1 threshold.
Three exceptions in that page do not help most published designs: incidental text, such as text that is part of an inactive interface component or pure decoration; text that is part of a logo or brand name; and large text, which uses the lower 3:1 mark. The page also says text that has insufficient contrast because of brand guidelines is not exempt. Do not treat a logo exception as a pass for a headline, a caption, or a button label.
The practice design
Use a fictional cafe poster for the exercise. The fictional brand is Maple Corner, a small cafe that does not exist. Its poster has a headline, a body line, a caption, a button label, a green heading, and a gold-brown line, all on a cream background except where the table says otherwise. Nothing in the table comes from a real client design.
How the ratios in the table were worked out
The ratios were calculated with a short script from the two hex colors, using the WCAG relative-luminance formula, (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color’s relative luminance and L2 is the darker color’s. No contrast checker or design product was run on the poster. Pass and fail were judged against the unrounded ratios, because the W3C page says the 3:1 and 4.5:1 marks are threshold values and computed values should not be rounded. A pair that looks “dark enough” can still fail, and a pair that looks pale can still pass if the background is dark enough, so write the numbers down instead of judging by eye.
The contrast check table
Copy the table, fill in your own design’s colors, and mark each row pass or fail against the mark for its text size.
| Text in the design | Text color | Background color | Contrast ratio | Body text (4.5:1) | Large text (3:1) |
|---|---|---|---|---|---|
| Headline: Maple Corner | #3B2A1E | #FFF8E7 | 12.91:1 | Pass | Pass |
| Body: Fresh coffee, warm light, open every morning. | #6B5D4F | #FFF8E7 | 6.00:1 | Pass | Pass |
| Caption on white | #9CA3AF | #FFFFFF | 2.54:1 | Fail | Fail |
| Button label in light green on white | #A8C686 | #FFFFFF | 1.89:1 | Fail | Fail |
| Green heading | #2F5233 | #FFF8E7 | 8.35:1 | Pass | Pass |
| Gold-brown line | #8A6D3B | #FFF8E7 | 4.58:1 | Pass | Pass |
Read the table row by row. The gold-brown line at 4.58:1 passes body text, but only just above the 4.5:1 mark, so a small change to either color could push it below the mark; treat a narrow pass as a warning, not a comfortable pass. The pale grey caption at 2.54:1 and the light green button label at 1.89:1 fail even the large-text mark, so making them larger or bolder does not fix them.
How to fix a failing row
Darken the text first
Darkening the text usually fixes a failing row with the least change to the design. In the practice table, the pale grey caption #9CA3AF on white fails at 2.54:1; a darker grey in the same family would need to be checked again with a new calculation, not assumed to pass.
Put a plain layer behind text on a photograph
Text on a photograph or a gradient sits on many background colors at once, so a ratio calculated against one corner of the image does not describe the whole line. Add a solid panel or a dark overlay behind the text, then calculate the ratio against that panel color. If the photograph still shows through, check the text against the lightest part of the photograph it covers.
Check every state and every size
Check placeholder text, helper text, footer links, and button labels as well as headlines and body copy. Check the same color pair again if it appears on a different background, for example a grey card instead of a white page, because the ratio changes with the background.
Limits
A passing ratio does not prove that a design is readable for everyone. It does not cover font size, line spacing, font weight, or text on a moving background, and it does not cover the contrast of icons and interface parts, which the W3C covers under a separate criterion. The ratios in the table apply only to the exact hex pairs listed; changing either color in a pair means calculating again. Expected result. The six ratios were calculated with a short script from the stated hex pairs using the WCAG relative-luminance formula, and pass or fail was judged against the unrounded values. We checked the W3C Understanding page for Success Criterion 1.4.3. We did not run a contrast checker or any product on the Maple Corner poster.
Sources
- W3C, Understanding Success Criterion 1.4.3: Contrast (Minimum) — states the 4.5:1 mark for text and 3:1 for large text, the intent that text can be read by people with moderately low vision, and that computed values should not be rounded (4.499:1 would not meet the 4.5:1 threshold).
