Skip to content
snip tools

HEX to RGB converter

Convert HEX to RGB / RGBA / HSL with a live swatch.

Runs 100% in your browser

RGB
RGBA
HSL
Channels

How to convert HEX to RGB

  1. Paste a HEX. #2563EB or 2563eb — both work, with or without #.
  2. 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

What forms of HEX are accepted?
3, 4, 6 and 8-digit hex codes — with or without the leading #. 3 and 4-digit short forms expand to 6 and 8.
How is alpha represented in 8-digit hex?
The last two characters encode alpha 00 (transparent) to FF (opaque). #2563EB80 ≈ rgba(37, 99, 235, 0.5).
Does the page send my colors anywhere?
No. All conversion happens in your browser.