To check text in a page or presentation, identify the text size, foreground and actual background. Enter #767676 and #ffffff in the contrast checker to see 4.54:1 with a normal-text AA pass. Choose the relevant target and condition before interpreting that result.

Select the WCAG 2.2 AA or AAA threshold

Choose the text target, enter the displayed foreground and background, and compare the unrounded ratio with its threshold.
Tools Hub original diagram showing the values and workflow. Enlarge diagram
Target AA AAA or additional check Example
Normal text and images of text At least 4.5:1 At least 7:1 Body text and small notes
Large text At least 3:1 At least 4.5:1 18pt or larger, or 14pt bold or larger
Required UI or graphical cues At least 3:1 against adjacent colors Assess the relevant state Necessary input boundaries or graph lines
Logotypes, pure decoration, inactive elements Text-contrast exceptions can apply Check purpose and state Establish the exception before using it
The CSS conversion is 1pt = 4/3px, so 18pt is 24px and 14pt is approximately 18.67px. Check equivalent size and actual weight for the font in use. Readable placeholder guidance and text shown on hover should be inspected too.

Compare white-background examples without rounding the decision

Text color Approximate ratio Tool display Normal-text AA
#000000 21 21.00:1 Pass
#111827 17.7397 17.74:1 Pass
#767676 4.5422 4.54:1 Pass
#6e7978 4.4976 4.50:1 Fail
#777777 4.4781 4.48:1 Fail
#3b82f6 3.6779 3.68:1 Fail
A ratio of 4.499 does not pass by rounding up to 4.5. Read the checker’s conformance cell as well as its two-decimal display. Swapping foreground and background leaves the ratio unchanged.

Compare near-threshold colors

Check the difference between the display and decision

Try #6e7978 on white, then change the foreground to #767676. Compare the normal-text AA cells.

Test the threshold example

Calculate relative luminance and the ratio

Divide each 8-bit sRGB channel by 255 to get c. Linearize it with c/12.92 when c≤0.04045, or ((c+0.055)/1.055)^2.4 otherwise. Relative luminance is L = 0.2126R + 0.7152G + 0.0722B using those linearized channels. With the lighter luminance L1 and darker L2, the ratio is (L1+0.05)/(L2+0.05).

Black has L=0 and white L=1, giving 1.05/0.05 = 21. This is a different calculation from HSL lightness. The conversion guide and converter explain color notation and channel values.

Check translucency, images and dark mode

Condition Values to inspect Additional locations or states
Opaque flat background Foreground and background HEX Normal, hover and error states
Translucent card or text Composited visible colors Light and dark regions behind glass
Image or gradient Least readable foreground/background pair Other scroll positions and widths
Dark mode The dark-mode pair Measure the colors used in that state
The checker accepts #RGB or #RRGGBB and does not parse alpha, images or complete CSS. The [conversion guide](/en/blog/color-conversion-guide/) explains compositing. Inspect specified colors and layers, rather than sampling anti-aliased glyph edges. Correct an input error before using the result.

Adjust colors and add other information cues

White text on #3b82f6 falls below normal-text AA. Changing the background to #1d4ed8 gives approximately 6.70:1. Explore candidates with the palette guide and generator, then remeasure hover and focus states. Underline links and accompany errors with an explanation and icon.

Keep a record for the next revision

Measure each text/background pair

Record the color codes, text size, background, ratio and result for body text, buttons and supporting text in your design notes.

Measure your foreground and background

The utility category also links to the checker. Favorite it to reopen it from My Tools in the same browser.

Tools Hub editorial staff checked WCAG conditions, numerical examples, inputs and swapping on November 8, 2026. This text-contrast check is one part of assessing a page’s WCAG conformance.

FAQ

Does a displayed 4.50:1 mean normal-text AA passes?

Not always. #6e7978 on white is approximately 4.4976:1. It displays as 4.50:1 but fails normal-text AA. The tool uses the unrounded ratio for its pass/fail cells.

What counts as large text in pixels?

The threshold is at least 18pt, or at least 14pt bold. In CSS these are 24px and approximately 18.67px. Consider the actual font weight and equivalent size as well.

Are faint placeholders exempt?

Placeholder text that provides readable guidance is subject to the text contrast requirement. Assess it separately from exceptions such as logotypes, pure decoration or inactive components.

Which background should I enter for a translucent card?

Use the composited background that is actually visible. Test the least readable locations and states when an image or scroll position changes it. The checker compares opaque three- or six-digit HEX colors.