How to use the HTML Color Code Picker
- 1Pick a color or type a HEX code
- 2Copy the format you need
- 3Choose a shade or check text contrast
About this tool
Use HEX in HTML and CSS, RGB for transparency and HSL to create lighter and darker shades. The contrast check shows whether white or black text on this color meets WCAG AA.
Frequently asked questions
WCAG AA requires at least 4.5:1 for normal text.
Yes, #abc is expanded to #aabbcc.