HEX to RGB converter
Convert HEX to RGB / RGBA / HSL with a live swatch.
Runs 100% in your browserRGB
RGBA
HSL
Channels
How to convert HEX to RGB
- Paste a HEX. #2563EB or 2563eb — both work, with or without #.
- Copy the RGB. rgb(), rgba() and HSL forms appear, with a live swatch.
Reading HEX
A 6-digit HEX color packs three 8-bit channels into one string — pairs 1–2 are red, 3–4 green,
5–6 blue, each in 0–255. The 8-digit form adds alpha in the last two characters (00 = fully
transparent, FF = fully opaque). The 3-digit shorthand #ABC expands by repeating
each character: #AABBCC.
Frequently asked questions
- 3, 4, 6 and 8-digit hex codes — with or without the leading #. 3 and 4-digit short forms expand to 6 and 8.
- The last two characters encode alpha 00 (transparent) to FF (opaque). #2563EB80 ≈ rgba(37, 99, 235, 0.5).
- No. All conversion happens in your browser.