The quick brown fox jumps over the lazy dog

Contrast Ratio

17.74

to 1

AA NormalPASS
AAA NormalPASS
AA LargePASS
AAA LargePASS

Color Details

Text Color

White

#fffffftext-white

Background Color

Gray 900

#111827bg-gray-900

WCAG Compliance

CriterionMin RatioResult
Normal Text AA4.5:1PASS
Normal Text AAA7:1PASS
Large Text AA3:1PASS
Large Text AAA4.5:1PASS

Code Examples

Tailwind CSShtml
<!-- Text color: text-white -->
<!-- Background: bg-gray-900 -->
<div class="bg-gray-900 p-6 rounded-lg">
  <p class="text-white">
    Your accessible text here
  </p>
</div>
Plain CSScss
/* Text: #ffffff on Background: #111827 */
.accessible-container {
  background-color: #111827;
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

Use Cases

  • Primary button text
  • Card headers on Gray 900 backgrounds

Accessible Alternatives

Aa
text-white20.13:1

bg-gray-950

Aa
text-white14.68:1

bg-gray-800

Aa
text-white10.31:1

bg-gray-700

Frequently Asked Questions

Is white text on gray 900 accessible?
Yes, this combination passes WCAG AA with a contrast ratio of 17.74:1, meeting the minimum 4.5:1 requirement for normal text.
What is the contrast ratio of white on gray 900?
The contrast ratio is 17.74:1. WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text. WCAG AAA requires 7:1 for normal text and 4.5:1 for large text.
Does this combination meet WCAG AAA?
Yes, with a 17.74:1 contrast ratio, this combination meets the strictest WCAG AAA standard (7:1 minimum), making it excellent for maximum accessibility.

Related Color Pairs

Check Your Own Color Pair

Use our free contrast checker to test any combination of text and background colors.

Open Contrast Checker