HEX to RGB Color Converter
Convert colors between HEX, RGB, and HSL formats instantly. Free online color converter with live preview and one-click copy.
#2563eb rgb(37, 99, 235) hsl(217, 83%, 53%) How to Convert HEX to RGB
Enter a HEX color code (e.g., #2563eb) or RGB values to instantly convert between color formats. The tool also calculates HSL values automatically.
Color Format Reference
- HEX — 6-digit hexadecimal code (e.g., #ff5733). Used in CSS and web design.
- RGB — Red, Green, Blue values from 0-255 (e.g., rgb(255, 87, 51)). Used in CSS and programming.
- HSL — Hue (0-360°), Saturation (0-100%), Lightness (0-100%). More intuitive for designers.
Frequently Asked Questions
What is a HEX color code?
A HEX color code is a 6-digit hexadecimal number prefixed with # (e.g., #2563eb) that represents a color in web design and CSS. Each pair of digits defines the Red, Green, and Blue components from 00 to FF.
Does it support 3-character HEX codes?
Currently this tool expects the full 6-character HEX format. To convert a 3-character code like #f00, simply double each character to get the 6-character equivalent: #ff0000.
What is HSL?
HSL stands for Hue (0-360 degrees), Saturation (0-100%), and Lightness (0-100%). It is a more intuitive color model for designers because adjusting lightness or saturation is straightforward compared to modifying individual RGB values.
RELATED TOOLS