You ask in plain words
With whatever notes or documents you already have.
Does grey #767676 text on a white background pass WCAG AA?
Check AA contrast for ordinary active text on solid white.
Your notes
T1 foreground #777777, background #FFFFFF, 16px regular T2 foreground #777777, background #FFFFFF, 24px regular
Your agent answers with a checked method
It runs 5 checks before it replies.
Your agentUsing this skill
The 16px text fails AA at 4.48:1 against white. Darken the text and retest for at least 4.5:1 before rounding. The same colour pair passes for the 24px heading, which needs 3:1.
- Using a perceived brightness average or comparing rounded ratios gives incorrect decisions near the threshold.
- The reduced large-text threshold depends on both size and weight. Inactive controls are a separate exception.
- Measuring a semi-transparent text colour as if it were opaque overstates the contrast. Blend it with the real background first.
- A text outline counts differently by width. W3C treats a narrow border as part of the letter and a wide halo that fills in the letters as the background.
- Checking only the default state misses hover, focus, visited and error colours, which are often lighter.
Why that’s right. The same colours cross the large-text threshold only.
Is it the right skill?
What it’s for, and when another skill or a person is the better choice.
Use it when
- Someone gives hex or RGB colours for text and background and asks whether they pass WCAG AA.
- A design review needs to know whether grey body text, link colours, placeholder text or button labels are readable enough.
- Text sits over a photo, gradient or semi-transparent overlay and the team wants to know whether it passes.
Not the right skill when
- Contrast of icons, focus indicators, chart lines or input borders. Those fall under WCAG 1.4.11 Non-text Contrast (3:1 against adjacent colours), a different check.
- Enhanced contrast at AAA (WCAG 1.4.6: 7:1, or 4.5:1 for large text) unless the person asks for that level.
- Judging whether a particular person with low vision can read the text. The ratio is a minimum; some people also need larger text or their own colour settings.
The method it follows
7 steps, in order, every time.
- Establish the effective colours behind the letters as rendered. Composite any transparency over the actual background before measuring. On photos, gradients or overlays, find the lowest-contrast area behind any letter: one failing region is a failure, and one passing sample cannot clear an unknown background.
- Convert each 8-bit channel to 0-1 by dividing by 255. Linearise with c/12.92 when c is at most 0.04045, otherwise ((c+0.055)/1.055)^2.4. Relative luminance L = 0.2126R + 0.7152G + 0.0722B. Older copies of the formula show 0.03928; W3C says the change makes no practical difference.
- Compute the contrast ratio (L1 + 0.05)/(L2 + 0.05), where L1 is the lighter colour. Ratios run from 1 to 21.
- Choose the WCAG 2.2 success criterion 1.4.3 (AA) threshold: 4.5:1 for ordinary text and 3:1 for large-scale text, which is at least 18 point (24 CSS pixels) or 14 point bold (1pt = 1.333px, so about 18.66 CSS pixels). Use the size as delivered, before any zoom by the user.
- Compare the unrounded ratio with the threshold: 4.499 does not meet 4.5. Round to two decimals only for display.
- Apply the exceptions only where they genuinely fit: text in an inactive control, pure decoration, text nobody can see, text that is part of a picture with plenty of other visual content, and text in a logo have no requirement. Mark these exempt rather than calculating a pass.
- Report each state and colour pair separately. For a failure, suggest a darker or lighter replacement colour and give its recalculated ratio.
What to have ready
If something’s missing, your agent asks before it starts.
- Opaque sRGB foreground and background values, or enough compositing evidence to establish the effective colours.
- Text size in CSS pixels, boldness and whether it qualifies for a stated exception such as inactive controls.

What are the exact text and background colours as rendered, including any opacity, overlay or image behind the text? Design-file colours and rendered colours can differ.

What size and weight is the text, in CSS pixels or points? The threshold depends on both.

Which states should be checked: default, hover, focus, visited, error or disabled? Each colour pair is a separate check.

Is the target WCAG 2.2 AA, or a stricter level or local standard?
Try it on your own AI
A new question with a known answer, so you can check your AI gets it right.
-
Copy the questionCheck these controls for the supplied states. Return only JSON following the skill’s test format. A active 16px regular, foreground #000000 on #FFFFFF B active 16px regular, white words over a photograph with no sampled background colours C inactive disabled control, text #AAAAAA on #FFFFFF
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
The extremes yield 21:1. A photo cannot be assigned a single reliable result from this description.
{
"checks": [
{
"id": "A",
"ratio": 21,
"threshold": 4.5,
"result": "pass"
},
{
"id": "B",
"ratio": null,
"threshold": null,
"result": "unknown"
},
{
"id": "C",
"ratio": null,
"threshold": null,
"result": "exempt"
}
]
}
The check runs in your browser. Nothing you paste is sent anywhere.
-
Copy the questionCheck large 24px regular white text. The two listed effective colours are the only backgrounds immediately behind any letter. Return only JSON following the skill’s test format. Title: foreground #FFFFFF; background #000000 behind the first word and #BBBBBB behind the second word.
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
White on black passes, but the light patch reduces the ratio to about 1.92:1 behind the second word.
{
"checks": [
{
"id": "Title",
"ratio": 1.92,
"threshold": 3,
"result": "fail"
}
]
}
The check runs in your browser. Nothing you paste is sent anywhere.
Where the method comes from
Free to use and adapt with credit (CC BY 4.0).
Use this skill in Raq.com
Add it to your Skill Library and your agent applies it whenever a request matches. Edit it for your own business and keep every version.