Developer & Tech
Color Converter & WCAG Contrast Checker
Enter any two colors to see their contrast ratio and whether they meet WCAG AA or AAA accessibility standards.
Accepts hex (#39A0ED), rgb(57, 160, 237), or common color names.
Text color values
- HEX
- #131A2B
- RGB
- 19, 26, 43
- HSL
- 223°, 39%, 12%
Background color values
- HEX
- #F5F7FA
- RGB
- 245, 247, 250
- HSL
- 216°, 33%, 97%
Sample heading textThe quick brown fox jumps over the lazy dog. 0123456789
WCAG contrast result
Contrast ratio
16.17: 1
Pass
AA · Normal text
Pass
AA · Large text
Pass
AAA · Normal text
Pass
AAA · Large text
This pairing meets WCAG AA for normal body text — safe to use for paragraph copy.
Reference
WCAG contrast thresholds
| Level | Text type | Min. ratio | Typical use |
|---|---|---|---|
| AA | Normal text | 4.5 : 1 | Body copy, labels, links |
| AA | Large text (18pt+ or 14pt+ bold) | 3.0 : 1 | Headings |
| AA | UI components & graphics | 3.0 : 1 | Buttons, inputs, icons |
| AAA | Normal text | 7.0 : 1 | High-accessibility contexts |
| AAA | Large text | 4.5 : 1 | Enhanced heading contrast |
FAQ
Common questions
WCAG (Web Content Accessibility Guidelines) defines contrast ratio as the difference in relative luminance between two colors, on a scale from 1:1 (identical colors, no contrast) to 21:1 (black on white, maximum contrast). It is calculated using the WCAG 2.x relative luminance formula, which applies a gamma correction to each RGB channel before computing the ratio.