Early-adopter pricing — $9/mo, before it rises.See plan →
Free Tool

Hex to RGB Converter

Convert between HEX, RGB, and HSL color codes instantly with live preview.

#B9502A
HEX#B9502A
RGBrgb(185, 80, 42)
HSLhsl(16, 63%, 45%)

How to convert HEX to RGB

A HEX color code like #B9502A is a three-pair hexadecimal number. Convert each pair from base-16 to base-10: B9 = 185, 50 = 80, 2A = 42. The result is rgb(185, 80, 42). This tool does the conversion instantly as you type.

Color format comparison

FormatSyntaxBest For
HEX#RRGGBBCSS shorthand, design specs
RGBrgb(R, G, B)CSS, dynamic color manipulation
HSLhsl(H, S%, L%)Adjusting brightness, creating palettes

Frequently Asked Questions

What is the difference between HEX and RGB?

HEX and RGB represent the same colors in different notations. HEX uses a 6-digit hexadecimal string (#FF0000), while RGB uses three decimal values from 0–255 (rgb(255, 0, 0)). Both define red, green, and blue channel intensities.

When should I use HSL instead of RGB?

HSL (Hue, Saturation, Lightness) is more intuitive for creating color variations. To make a color lighter, increase L. To desaturate, decrease S. This makes HSL ideal for generating consistent color palettes and themes.

Need on-brand blog content?

Quillly generates blog content that matches your brand colors. Try it free.