Color Converter
Convert colors between HEX, RGB, and HSL formats with a live preview swatch.
Frequently Asked Questions
How do I convert a HEX color to RGB?▾
Enter your HEX color code (e.g., #ff5733) in the HEX input field and the RGB values will update instantly. You can also use the color picker.
What is the difference between HEX, RGB, and HSL?▾
HEX uses a six-character code (e.g., #ff0000), RGB uses red/green/blue values from 0-255, and HSL uses hue (0-360), saturation (0-100%), and lightness (0-100%). They all represent the same colors in different formats.
Can I use a 3-character HEX code?▾
Yes. Shorthand 3-character HEX codes like #fff or #f00 are automatically expanded to their 6-character equivalents (#ffffff, #ff0000).