FileKiln

HEX to RGB Converter

Convert HEX colors to RGB and back, with alpha support and a live swatch. Accepts #abc, #aabbcc, #aabbccdd, and rgb()/rgba() input. In-browser.

hex ⇄ rgb
Local execution · no network egress

Private by construction. The conversion happens in this page's JavaScript. Nothing you paste here leaves your machine, and the tool keeps working with the network unplugged.

Accepts every common CSS color spelling: three-digit shorthand like #abc, six-digit hex, eight-digit hex with alpha, and rgb()/rgba() functions. Output shows the value in each notation and paints a live swatch so you can confirm it is the color you meant before it lands in a stylesheet.

Questions this tool gets asked

Does it support alpha (transparency)?

Yes. Eight-digit hex like #6fa7cc80 and rgba() input both work, and the alpha value is carried through to every output notation.

What is #abc shorthand?

Three-digit hex doubles each digit, so #abc means #aabbcc. The converter expands it the same way browsers do.

Why a swatch?

A rendered color check catches transposed digits instantly, which numbers alone rarely do.