Convert OnlineConvertOnline



Color Preview


CSS Color Value

How to use this HEX to RGB Color Converter 🤔

  1. Click 👆 on the input fields and enter values for the input HEX color channels, or you may use the sliders given 🎚 against each channel to set a specific value for the respective color channel.
  2. As you change the HEX color channels, the RGB color value is calculated, in real time ⌚.
  3. Also a color preview is provided to give a feedback on which color that we are converting from HEX to RGB.

HEX to RGB Conversion

HEX to RGB conversion is the process of converting a color represented in the HEX format to its equivalent RGB representation.

In the HEX format, colors are expressed as a six-digit hexadecimal number, where the first two digits represent the red component, the next two digits represent the green component, and the last two digits represent the blue component.

In the RGB format, colors are expressed as combinations of red, green, and blue components, each ranging from 0 to 255 decimal values.

Steps to Convert HEX to RGB

Here are the steps to convert a HEX color to RGB:

  1. Split the six-digit HEX code into pairs for red, green, and blue components.
  2. Convert each pair from hexadecimal to decimal.
  3. The tuple of converted red, green, and blue components is the resulting RGB value.


Let's take an example to illustrate the process. Suppose we have a HEX color code #2ED18A:

  1. Split the HEX code into pairs: 2E, D1, 8A.
  2. Convert each pair to decimal: hexadecimal 2E becomes 46 decimal, hexadecimal D1 becomes 209 decimal, hexadecimal 8A becomes 48 decimal.
  3. Combine the decimal values: RGB(46, 209, 48).

The RGB equivalent is RGB(46, 209, 48).

Therefore, #2ED18A in HEX is equal to RGB(46, 209, 48) in RGB.