HEX Color Picker
Type or paste any HEX code — see the color preview and RGB/HSL values instantly.
Converted values
RGB
rgb(38, 125, 112)HSL
hsl(172, 53%, 32%)Instructions
Enter a 3-digit shorthand hex like #F00 or a 6-digit hex like #FF0000. The tool validates the input and shows a live color preview, the full RGB value and the HSL value. All conversions are computed in your browser.
Examples
| HEX | Color | RGB | HSL |
|---|---|---|---|
#FFFFFF | White | rgb(255, 255, 255) | hsl(0, 0%, 100%) |
#FF0000 | Red | rgb(255, 0, 0) | hsl(0, 100%, 50%) |
#267D70 | Coolour teal | rgb(38, 125, 112) | hsl(172, 53%, 32%) |
FAQ
What is a HEX color code?
A HEX code is a 6-character hexadecimal string representing red, green and blue channels: #RRGGBB.
Can I use 3-digit HEX codes?
Yes. #F00 is expanded to #FF0000.