CHROMA

HEX to RGB Converter

Type a HEX value and get RGB straight away. Everything runs in your browser — nothing is sent to a server.

Result

Other formats

HOW

How the conversion works

A HEX code packs red, green and blue into two hexadecimal digits each. Split #RRGGBB into pairs and read each pair as a decimal number: FF becomes 255 and 63 becomes 99.

HEX

HEX is the same red-green-blue triplet as RGB, just written in base 16 so each channel fits in two characters. It survives everywhere — CSS, design tools, config files — because it is short and unambiguous. Case does not matter, and #abc is shorthand for #aabbcc. An eight-digit HEX adds alpha as a final pair, which is why #FF000080 is half-transparent red.

RGB

RGB describes color the way a screen makes it: three lights added together, each from 0 to 255. All three at zero is black; all three at 255 is white. Because it mirrors the hardware it is exact and lossless, but it is hard to reason about — nudging a color slightly warmer means changing two or three numbers at once with no obvious direction.

STEPS

HEX to RGB, step by step

Worked through with #FF6347. Every number comes from the same engine the converter above uses.

  1. Split into pairs #FF6347 → FF · 63 · 47
  2. Read each pair as base 16 R FF = 15×16 + 15 = 255 G 63 = 6×16 + 3 = 99 B 47 = 4×16 + 7 = 71
  3. Result rgb(255, 99, 71)
EXAMPLES

HEX to RGB examples

ColorHEXRGB
Red #FF0000 rgb(255, 0, 0)
Tomato #FF6347 rgb(255, 99, 71)
Orange #FFA500 rgb(255, 165, 0)
Gold #FFD700 rgb(255, 215, 0)
Limegreen #32CD32 rgb(50, 205, 50)
Teal #008080 rgb(0, 128, 128)
Dodgerblue #1E90FF rgb(30, 144, 255)
Royalblue #4169E1 rgb(65, 105, 225)
Blueviolet #8A2BE2 rgb(138, 43, 226)
Hotpink #FF69B4 rgb(255, 105, 180)
FAQ

Common questions

Is anything lost converting HEX to RGB?

No. They are the same numbers in different bases, so the round trip is exact. Every HEX maps to exactly one RGB triplet and back again.

What does a three-character HEX mean?

Each digit is doubled: #f80 is #ff8800. It only reaches 4,096 of the 16.7 million colors, so it is a convenience for round values, not a compression.

Why does my HEX have eight characters?

The last pair is alpha, from 00 (invisible) to FF (opaque). Older browsers ignore it, so keep a solid fallback if you need wide support.

MORE

Other converters