Free & Instant

Color Converter

Convert between HEX, RGB, and HSL color formats. Pick any color visually, adjust with sliders, and copy CSS values with one click.

Hue221°
Saturation83%
Lightness53%
HEX
RGB
R
G
B
HSL
S%
L%

Understanding Color Formats

Every color on screen can be described using different notations. Designers and developers work with three main formats: HEX, RGB, and HSL. They all represent the same colors — they're just different languages for the same thing.

HEX Colors

HEX is a compact six-character code preceded by a hash symbol. Each pair of characters represents the red, green, and blue channels in hexadecimal (base-16) notation, with values from 00 (none) to FF (maximum).

#RRGGBB
#FF5733 → R:255, G:87, B:51
Example: To convert #3B82F6 to RGB:
3B = 59, 82 = 130, F6 = 246 → rgb(59, 130, 246)

RGB Colors

RGB defines color using three values from 0 to 255 — one for each light channel (red, green, blue). Mixing all three at full intensity gives white; all at zero gives black. This model directly mirrors how screens produce color by combining light.

rgb(red, green, blue)
Values: 0–255 each

HSL Colors

HSL is often the most intuitive format for humans. Hue is the color itself (a position on the color wheel, 0–360°). Saturation is how vivid the color is (0% = gray, 100% = full color). Lightness controls brightness (0% = black, 50% = pure color, 100% = white).

hsl(hue, saturation%, lightness%)
H: 0–360° · S: 0–100% · L: 0–100%
Example: Pure red = hsl(0, 100%, 50%)
Desaturated red = hsl(0, 40%, 50%)
Light pastel red = hsl(0, 100%, 85%)

Common Web Colors

Here are some frequently used colors for quick reference. Click any swatch to load it into the converter.

Frequently Asked Questions

Related Tools