Designer

Color Converter

Convert HEX colors into RGB and HSL values.

All tools

Color

Formats

HEX: #0f766e
RGB: rgb(15, 118, 110)
HSL: hsl(175, 77%, 26%)
CSS variable: --color: #0f766e;

Frequently asked questions

What's the difference between HEX, RGB, and HSL?
HEX and RGB describe the same red, green, and blue channels in different notations (HEX is base-16, RGB is decimal 0-255). HSL splits color into hue, saturation, and lightness, which is easier to reason about when adjusting shades by hand.
Can HEX represent transparency?
Yes, an 8-digit HEX like #RRGGBBAA adds an alpha channel where 00 is fully transparent and FF is fully opaque. Older browsers only support the 6-digit form, so prefer rgba() if you need wide compatibility.
Why do some HEX codes use shorthand like #FFF?
Three-digit HEX is a shortcut where each character is duplicated, so #F0A becomes #FF00AA. It only works when both nibbles of each channel are identical.