← All toolsDeveloper›Web & CSS
Color Converter & Contrast Checker
Convert colors between HEX, RGB and HSL, and check text/background contrast against WCAG accessibility levels.
Tip from Tink: Normal text needs a contrast of at least 4.5:1 for WCAG AA.
HEX
#1F2937RGB
rgb(31, 41, 55)HSL
hsl(215, 28%, 17%)HEX
#FDE68ARGB
rgb(253, 230, 138)HSL
hsl(48, 97%, 77%)Large heading text
Normal body text should be easy to read.
Contrast ratio
11.79:1
AA ✓AA large ✓AAA ✓AAA large ✓
Advertisement
How to use the Color Converter & Contrast Checker
- Enter a text color and background color in any format.
- Copy the HEX, RGB or HSL value.
- Check the contrast pass/fail badges.
Everything runs in your browser. Nothing you enter is uploaded.