DevToolBoxFREE
Blog

Hex to RGB Converter - Convert Hex Color to RGB Online

Free online hex to RGB converter. Convert hex color codes to RGB values and RGB to hex instantly. Includes color preview, HSL conversion, and common color reference. No signup required.

ColorHexRGBHSL
White
#FFFFFF255, 255, 255hsl(0, 0%, 100%)
Black
#0000000, 0, 0hsl(0, 0%, 0%)
Red
#FF0000255, 0, 0hsl(0, 100%, 50%)
Green
#00FF000, 255, 0hsl(120, 100%, 50%)
Blue
#0000FF0, 0, 255hsl(240, 100%, 50%)
Yellow
#FFFF00255, 255, 0hsl(60, 100%, 50%)
Cyan
#00FFFF0, 255, 255hsl(180, 100%, 50%)
Magenta
#FF00FF255, 0, 255hsl(300, 100%, 50%)
Orange
#FFA500255, 165, 0hsl(39, 100%, 50%)
Purple
#800080128, 0, 128hsl(300, 100%, 25%)

Hex to RGB Color Converter Online

This hex to RGB converter tool allows you to easily convert between hexadecimal color codes and RGB (Red, Green, Blue) values. Enter a hex color code to see its RGB breakdown, HSL equivalent, and CSS rgb() string. You can also input individual R, G, B values to generate the corresponding hex code. Features include a live color preview, common color reference table, and one-click copy for all values. All processing happens in your browser โ€” your data never leaves your device.

๐• Twitterin LinkedIn

Rate this tool

4.3 / 5 ยท 82 ratings

Stay Updated

Get weekly dev tips and new tool announcements.

No spam. Unsubscribe anytime.

Enjoy these free tools?

โ˜•Buy Me a Coffee

FAQ

How do I convert hex to RGB?
Enter a hex color code (e.g., #FF6B35) in the input field. The converter instantly shows the RGB values (255, 107, 53), along with HSL and CSS color function formats.
What is the formula for hex to RGB conversion?
Split the 6-digit hex code into 3 pairs (RR, GG, BB). Convert each pair from hexadecimal to decimal: R = parseInt('FF', 16) = 255, G = parseInt('6B', 16) = 107, B = parseInt('35', 16) = 53.
Can I convert RGB back to hex?
Yes, enter RGB values (0-255 for each channel) and the tool generates the hex code. The formula converts each decimal to a 2-digit hex value and concatenates them with a # prefix.
What is the difference between HEX, RGB, and HSL?
HEX uses hexadecimal notation (#RRGGBB), RGB specifies red/green/blue intensities (0-255), and HSL uses hue (0-360), saturation (0-100%), lightness (0-100%). HSL is most intuitive for creating color variations.