Hex to RGB Converter

Paste a hex code like #1A73E8 and get its RGB equivalent (26, 115, 232) instantly โ€” or paste RGB values and get the hex. A live swatch shows the actual color, so you can confirm you have the right shade before it goes into CSS, Figma or a brand guide.

Both notations describe the same color: hex is just RGB written in base 16 (1A hex = 26). The converter accepts 3-digit shorthand too (#F00 = #FF0000) and outputs the 6-digit canonical form.

-hex
-rgb()

How to use

  1. Type a hex code (with or without the #) โ€” RGB values and the color swatch appear instantly.
  2. Or type R, G, B numbers (0โ€“255) to get the hex code.
  3. Copy either format straight into CSS, design tools or documentation.

Frequently asked questions

How do I convert HEX to RGB?

Split the hex code into three pairs and convert each from base 16 to base 10. #1A73E8: 1A = 26, 73 = 115, E8 = 232 โ€” so RGB(26, 115, 232). The converter does both pairs live.

What is the difference between HEX and RGB?

None in color โ€” they are two notations for the same values. HEX is compact and universal in design handoffs; RGB(A) supports alpha transparency and reads more explicitly in CSS.

What are 3-digit hex codes?

Shorthand where each digit is doubled: #F00 expands to #FF0000 (red). It exists for brevity; the converter accepts it and outputs the full 6-digit form.

What is RGBA?

RGB plus an alpha channel for opacity (0โ€“1). This converter handles opaque colors; add the alpha in CSS separately, e.g. rgba(26, 115, 232, 0.5).

Related tools