CalcuOnline
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

LevelText typeMin. ratioTypical use
AANormal text4.5 : 1Body copy, labels, links
AALarge text (18pt+ or 14pt+ bold)3.0 : 1Headings
AAUI components & graphics3.0 : 1Buttons, inputs, icons
AAANormal text7.0 : 1High-accessibility contexts
AAALarge text4.5 : 1Enhanced 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.

Related tools