WCAG 2.2 ratio, feed-size preview
Will this text color pass WCAG contrast?
Enter a background and a text color as hex, or pick them, and the checker gives the WCAG contrast ratio, four pass or fail verdicts, and your headline drawn on a 4:5 post at about feed size and grid size. The starting pair is Creobee's amber, #FCA311, with white text: 2.02 to 1, a fail at every level. Switch the text to the near-black #0B0500 and it reads at 10.03 to 1.
Nothing to install or sign up for. Updated .
Posting every week? See Creobee’s Instagram quote maker.
Contrast ratio
2.02:1
- Large headline text, WCAG AA (needs 3:1)Fail
- Body text, WCAG AA (needs 4.5:1)Fail
- Body text, WCAG AAA (needs 7:1)Fail
- Feed-safe headline (our rule) (needs 4.5:1)Fail
Feed-size preview
Left is roughly how big a post is in the feed; right is the profile grid.
Book your first class free
Book your first class free
Try Creobee's own pair: background #FCA311 with text #0B0500 passes AAA; the same amber with white text fails every level.
The formula the checker runs
The checker follows the WCAG 2.2 definitions in three steps, and compares the unrounded result with each threshold.
Relative luminance
Each sRGB channel is divided by 255. A value at or below 0.03928 is divided by 12.92; any other becomes ((value + 0.055) / 1.055) to the power 2.4. Luminance is then 0.2126 times red, plus 0.7152 times green, plus 0.0722 times blue, so green carries most of the weight and blue very little.
The ratio
The lighter luminance plus 0.05, divided by the darker luminance plus 0.05. It runs from 1 to 1, two identical colors, to 21 to 1, black on white.
The 0.03928 detail
WCAG changed that threshold to 0.04045 in May 2021 and says the change has no practical effect. For hex colors it has none at all: both values fall between the channel values 10 and 11 out of 255, so no 8-bit color is treated differently. We checked all 256 channel values on November 4, 2026 by running the checker's formula with both thresholds in Node 24.
Pass marks, and the one we added
WCAG's large text is at least 18 point, or 14 point bold, about 24 and 18.5 CSS pixels where it is read. A post is read small: a 1080 wide post shown full width on a phone 390 CSS pixels wide is drawn at about 36 percent, so a 60 pixel headline on the canvas reads at about 22 pixels, and in a grid tile a third of that. That is why the checker adds a feed-safe verdict for headlines at 4.5 to 1.
| Verdict in the checker | Ratio needed | Source |
|---|---|---|
| Large headline text, WCAG AA | 3:1 | WCAG 2.2, 1.4.3 Contrast (Minimum) |
| Body text, WCAG AA | 4.5:1 | WCAG 2.2, 1.4.3 Contrast (Minimum) |
| Body text, WCAG AAA | 7:1 | WCAG 2.2, 1.4.6 Contrast (Enhanced) |
| Feed-safe headline | 4.5:1 | Our rule for posts, the same bar WCAG sets for large text at AAA |
Brand colors, measured
We ran these colors through the checker's own formula on November 4, 2026; they turn up in many brand palettes. Mid-tones are where a pair surprises people: the gray and the rose pass with white but miss 4.5 to 1 with black, by less than half a point.
| Background | White text | Black text | Passes 4.5:1 with |
|---|---|---|---|
| #FCA311 amber | 2.02 | 10.39 | black |
| #10B981 emerald | 2.54 | 8.28 | black |
| #6B7280 gray | 4.83 | 4.34 | white |
| #E11D48 rose | 4.70 | 4.47 | white |
| #2563EB blue | 5.17 | 4.06 | white |
| #7C3AED violet | 5.70 | 3.69 | white |
Edge cases the verdicts handle
Three situations where a single number needs reading with care.
Rounding
WCAG says a computed ratio is never rounded, so 4.499 to 1 does not meet 4.5 to 1. The checker shows two decimals but tests the unrounded value, so in that rare case you can see 4.50:1 next to a Fail. The verdict is the one to trust.
Text over a photo
One ratio cannot describe a photo, and WCAG lists background images without enough contrast as a known failure. Sample the lightest and the darkest area behind the words with the pickers and check both, or put a solid or darkened band behind the text so there is one background to check.
Logos
WCAG sets no contrast requirement for text that is part of a logo or brand name. The logo can keep its own colors; the headline and the call to action beside it cannot.
Contrast questions
WCAG asks for 4.5 to 1 for body text and 3 to 1 for large text at level AA. A post is read small on a phone, so treat 4.5 to 1 as the floor for headlines too; the checker's feed-safe verdict uses it.
Bright amber and orange sit high in luminance, close to white. White on #FCA311 is 2.02 to 1, while near-black on the same amber is above 10 to 1. On a bright brand color, dark text is the pair that reads.
Yes. The checker takes three or six hex digits, with or without the #, and expands three digits the usual way: #FA3 is #FFAA33.
No. The ratio is computed in your browser from the two colors you enter.
More for your brand colors
Brand color extractor
Get the color palette from your logo or any image as hex codes, with the text color that reads on each and a background and accent pair.
Open toolInstagram font generator
Instagram font generator with 20 styles: script, italic, gothic, small caps, bubble and more for your bio, captions and comments.
Open tool
Read next
Text Over Images: 9 Readability Rules for Text Overlays
Text over images stays readable with 9 rules: contrast you can measure, scrims, calm backgrounds, size, margins and a thumbnail test, plus picking backgrounds.
Social Media Colors: 10 Palettes With Hex Codes
Social media colors that work: a three-color brand system, the 4.5:1 contrast test every text pairing must pass, 10 palettes with hex codes and one-page rules.
Instagram Alt Text: 20 Examples and How to Add It
Where to add Instagram alt text, what to write for a text graphic, 20 examples to copy, and the contrast and caption habits that make posts readable to all.
All free tools
- All 19 tools
- Image size guides
- Instagram caption line break tool
- Instagram post crop preview
- Social media character counter
- Instagram italic font generator
- Instagram bold text generator
- Social media image resizer
- Image compressor for Instagram
- Instagram grid planner
- Reel cover safe zone checker
- Aspect ratio calculator
- Instagram carousel splitter
- Social media manager cost calculator
- LinkedIn post preview
- Instagram post preview
- Product Hunt launch preview
- Instagram grid maker