HEX to RGB Converter

Convert HEX colors into RGB and RGBA values instantly. Preview your colors, select colors visually and copy the results with one click.

Online HEX Color Converter

Accepted formats: #RGB, #RGBA, #RRGGBB and #RRGGBBAA.

Color Preview

#3B82F6

RGB Color Channels

59 RED
130 GREEN
246 BLUE

Conversion Results

HEX
#3B82F6
RGB
rgb(59, 130, 246)
RGBA
rgba(59, 130, 246, 1)
Alpha / Opacity
1

How to Convert HEX to RGB

HEX and RGB are two common color formats used in web development, graphic design and digital applications. HEX represents colors using hexadecimal characters, while RGB represents them using red, green and blue values.

Each RGB channel has a value between 0 and 255. A six-digit HEX code contains three pairs of hexadecimal digits representing these channels.

Example: HEX #3B82F6

#3B82F6
  • Red: 3B = 59
  • Green: 82 = 130
  • Blue: F6 = 246

The resulting RGB value is:

rgb(59, 130, 246)

Supported HEX Formats

  • #RGB: Three-digit HEX format.
  • #RGBA: Four-digit HEX format with transparency.
  • #RRGGBB: Standard six-digit HEX format.
  • #RRGGBBAA: Eight-digit HEX format with alpha.

What Is RGB?

RGB stands for Red, Green and Blue. These three color channels combine to produce colors on digital displays.

  • RGB(0, 0, 0) represents black.
  • RGB(255, 255, 255) represents white.
  • RGB(255, 0, 0) represents red.
  • RGB(0, 255, 0) represents green.
  • RGB(0, 0, 255) represents blue.

What Is RGBA?

RGBA extends RGB by adding an alpha channel. The alpha channel controls color opacity. Zero means fully transparent and one means fully opaque.

rgba(59, 130, 246, 0.5)

This example represents blue with 50% opacity.

Frequently Asked Questions

1. What is a HEX to RGB converter?

It is an online tool that converts hexadecimal color codes into red, green and blue numerical values.

2. How do I convert HEX to RGB manually?

Separate the six-digit HEX code into three pairs. Convert each pair from hexadecimal to decimal. The three resulting numbers represent RGB.

3. Can I convert three-digit HEX colors?

Yes. A three-digit HEX color such as #F00 is expanded into #FF0000 before conversion.

4. What is the difference between RGB and RGBA?

RGB contains three color channels. RGBA includes an additional alpha channel for transparency.

5. Does the converter support transparency?

Yes. Four-digit and eight-digit HEX formats are supported, including their alpha values.

6. Is this converter free?

Yes. You can convert colors without registration, an API key or payment.

Related Color Tools

Explore other color conversion and design utilities on SoftRebate.