HEX to RGB Converter
Convert a hex color code to its RGB equivalent.
#4d90fergb(77, 144, 254)hsl(217, 99%, 65%)What is a HEX to RGB converter?
A HEX to RGB converter changes a hexadecimal color code into its red, green, and blue channel values. HEX colors are commonly written as six-digit codes such as #4d90fe, while RGB represents the same color using three numeric channels from 0 to 255.
This free HEX to RGB converter lets you enter a supported HEX color and view its RGB representation directly in your browser. The shared color converter also provides normalized HEX and HSL values for the same color.
How to convert HEX to RGB
Enter a 3-digit or 6-digit hexadecimal color code into the converter. You can include the leading # symbol or enter the hexadecimal value without it.
The converter processes the color and displays its RGB channel values. For example, a HEX color such as #4d90fe is represented by corresponding red, green, and blue values that can be used in CSS, design tools, and other applications that accept RGB colors.
Understanding HEX and RGB color values
HEX and RGB are two different ways to represent the same colors. A HEX color uses hexadecimal notation to represent the red, green, and blue channels in a compact format. RGB writes those channels as separate decimal values.
The color itself does not change when you convert between HEX and RGB. Only the notation changes, which can be useful when moving color values between CSS code, design specifications, development tools, and other workflows.
Convert HEX colors to RGB online
Use this free HEX to RGB converter to turn a web color code such as #4d90fe into RGB channel values. The shared converter also displays normalized HEX and HSL values, making it useful for moving a color between CSS, design, and development workflows.
Why HEX and RGB conversions matter
HEX is compact and common in stylesheets, while RGB exposes the red, green, and blue channel values. Converting between them helps when a design specification, browser tool, or codebase expects a different notation for the same color.
Frequently asked questions
- Yes, completely free with no signup or usage limit.
- No. The conversion happens directly in your browser.
- Yes — shorthand codes like #4d9 are expanded automatically.
- Yes. The converter accepts 3- or 6-digit hexadecimal values with or without a leading #.
- The shared color converter shows the normalized HEX value together with its RGB and HSL representations.
- Yes. Although this page focuses on HEX to RGB conversion, the shared converter also accepts supported RGB and HSL syntax.
- RGB channels must be within the supported 0–255 range before the color can be converted.
- No. This tool converts typed color values. Use Color Picker from Image to sample a pixel from an uploaded picture.
Related tools
Or browse the full list of free tools.