How to use the Color Converter
- Enter a color in any format.
- Copy the format you need.
- Set a second color to check contrast.
Features
- HEX ⇄ RGB ⇄ HSL with alpha
- Flutter Color(0xAARRGGBB) and Android #AARRGGBB output
- WCAG 2.x contrast ratio with AA/AAA pass/fail
- Live preview of text on background
Frequently asked questions
What contrast ratio do I need?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1 respectively.
How do I write a hex color in Flutter?
Prefix the hex with FF for full opacity: #22D3EE becomes Color(0xFF22D3EE).