# ConvertHEXtoRGB

Input

Color Preview

Output

CSS Color Value

## How to use this HEX to RGB Color Converter 🤔

- 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. - As you change the
**HEX**color channels, the**RGB**color value is calculated, in real time ⌚. - 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:

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

## Example

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

- Split the HEX code into pairs: 2E, D1, 8A.
- Convert each pair to decimal: hexadecimal 2E becomes 46 decimal, hexadecimal D1 becomes 209 decimal, hexadecimal 8A becomes 48 decimal.
- 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.