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.

The checker's four verdicts and where each threshold comes from.
Verdict in the checkerRatio neededSource
Large headline text, WCAG AA3:1WCAG 2.2, 1.4.3 Contrast (Minimum)
Body text, WCAG AA4.5:1WCAG 2.2, 1.4.3 Contrast (Minimum)
Body text, WCAG AAA7:1WCAG 2.2, 1.4.6 Contrast (Enhanced)
Feed-safe headline4.5:1Our 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.

Contrast ratios computed by this checker against pure white (#FFFFFF) and pure black (#000000).
BackgroundWhite textBlack textPasses 4.5:1 with
#FCA311 amber2.0210.39black
#10B981 emerald2.548.28black
#6B7280 gray4.834.34white
#E11D48 rose4.704.47white
#2563EB blue5.174.06white
#7C3AED violet5.703.69white

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.