Tools

HEX ↔ RGB Converter

Instantly convert HEX color codes to RGB and HSL formats.

color: #3498DB;
color: rgb(52, 152, 219);
color: hsl(204, 70%, 53%);

How to Use

Enter a HEX color code to automatically convert it to RGB and HSL values. You can also enter RGB values to get the corresponding HEX code. • HEX: The most common color notation on the web (#FF5733) • RGB: Red, Green, Blue channel values (0-255) • HSL: Hue, Saturation, Lightness All processing happens in your browser — no data is sent to any server.

Conversion Examples

HEX #FF5733 → RGB(255, 87, 51) → HSL(11°, 100%, 60%) HEX #3498DB → RGB(52, 152, 219) → HSL(204°, 70%, 53%) HEX #2ECC71 → RGB(46, 204, 113) → HSL(145°, 63%, 49%)

FAQ

What is a HEX color code?
A HEX color code represents colors using hexadecimal notation. In #RRGGBB format, each pair represents red, green, and blue channels ranging from 00 to FF. It is widely used in CSS and HTML.
What is the difference between RGB and HSL?
RGB defines colors by mixing red, green, and blue channels. HSL uses Hue, Saturation, and Lightness. HSL is more intuitive for human perception of color.
Is my data sent to a server?
No, all conversions happen entirely in your browser. No data is transmitted anywhere.

Related Tools