Brand blue
Type #3b82f6 to get rgb(59, 130, 246), shown alongside the opaque rgba(59, 130, 246, 1).
Convert HEX color codes to RGB and RGBA values instantly with a live preview — free online.
About
Converts a HEX colour code into its RGB and RGBA values, with a live swatch and colour picker.
Developers use it to turn a HEX value from a design file into the RGB format a CSS property or graphics API needs, while designers use it to double-check a colour's RGB channels before adjusting it. It's grouped with Toolapt's other free designer tools: no account to create, no ceiling on how many times you reach for it.
Examples
3 worked examples
Type #3b82f6 to get rgb(59, 130, 246), shown alongside the opaque rgba(59, 130, 246, 1).
Type the shorthand #0f0 and it expands to #00ff00 first, converting to rgb(0, 255, 0).
Type the 8-digit #3b82f680 and get rgba(59, 130, 246, 0.5) — the trailing 80 alpha byte (128 of 255) works out to 50% opacity, and the swatch shows it see-through.
FAQ
Quick answers to common questions about the HEX to RGB Converter.
It converts a HEX colour code into its equivalent RGB value and an opaque RGBA value.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. The HEX code you enter is processed entirely on your own device — nothing is sent to a server.
No. The converter accepts a HEX code with or without a leading #, so "3b82f6" and "#3b82f6" both work.
Yes. An 8-digit HEX code (with an alpha channel) is recognized, and its RGB/RGBA output reflects that transparency.
RGB shows just the red, green and blue channels; RGBA additionally includes the alpha (opacity) value, shown as fully opaque unless the HEX code itself specifies transparency.
Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.
It accepts standard 3, 4, 6 and 8-digit HEX codes; it doesn't parse named CSS colours or other colour formats like HSL — use the Colour Converter for those.
Did HEX to RGB Converter work for you?