The quick brown fox jumps over the lazy dog
Contrast Ratio
15.34
to 1
AA NormalPASS
AAA NormalPASS
AA LargePASS
AAA LargePASS
Color Details
Text Color
Slate 900
#0f172atext-slate-900
Background Color
Yellow 200
#fef08abg-yellow-200
WCAG Compliance
| Criterion | Min Ratio | Result |
|---|---|---|
| Normal Text AA | 4.5:1 | PASS |
| Normal Text AAA | 7:1 | PASS |
| Large Text AA | 3:1 | PASS |
| Large Text AAA | 4.5:1 | PASS |
Code Examples
Tailwind CSShtml
<!-- Text color: text-slate-900 -->
<!-- Background: bg-yellow-200 -->
<div class="bg-yellow-200 p-6 rounded-lg">
<p class="text-slate-900">
Your accessible text here
</p>
</div>Plain CSScss
/* Text: #0f172a on Background: #fef08a */
.accessible-container {
background-color: #fef08a;
color: #0f172a;
padding: 1.5rem;
border-radius: 0.5rem;
}Use Cases
- Heading text on light cards
- Sidebar navigation labels
Accessible Alternatives
Aa
text-slate-6006.51:1
bg-yellow-200
Aa
text-slate-7008.90:1
bg-yellow-200
Aa
text-slate-9006.08:1
bg-yellow-600
Frequently Asked Questions
Is slate 900 text on yellow 200 accessible?▼
Yes, this combination passes WCAG AA with a contrast ratio of 15.34:1, meeting the minimum 4.5:1 requirement for normal text.
What is the contrast ratio of slate 900 on yellow 200?▼
The contrast ratio is 15.34: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 15.34: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