The quick brown fox jumps over the lazy dog
Contrast Ratio
6.81
to 1
AA NormalPASS
AAA NormalFAIL
AA LargePASS
AAA LargePASS
Color Details
Text Color
Green 800
#166534text-green-800
Background Color
Green 50
#f0fdf4bg-green-50
WCAG Compliance
| Criterion | Min Ratio | Result |
|---|---|---|
| Normal Text AA | 4.5:1 | PASS |
| Normal Text AAA | 7:1 | FAIL |
| Large Text AA | 3:1 | PASS |
| Large Text AAA | 4.5:1 | PASS |
Code Examples
Tailwind CSShtml
<!-- Text color: text-green-800 -->
<!-- Background: bg-green-50 -->
<div class="bg-green-50 p-6 rounded-lg">
<p class="text-green-800">
Your accessible text here
</p>
</div>Plain CSScss
/* Text: #166534 on Background: #f0fdf4 */
.accessible-container {
background-color: #f0fdf4;
color: #166534;
padding: 1.5rem;
border-radius: 0.5rem;
}Use Cases
- Heading text on light cards
- Sidebar navigation labels
Accessible Alternatives
Aa
text-green-7004.79:1
bg-green-50
Aa
text-green-9008.70:1
bg-green-50
Aa
text-green-8005.08:1
bg-green-300
Frequently Asked Questions
Is green 800 text on green 50 accessible?▼
Yes, this combination passes WCAG AA with a contrast ratio of 6.81:1, meeting the minimum 4.5:1 requirement for normal text.
What is the contrast ratio of green 800 on green 50?▼
The contrast ratio is 6.81: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.
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