HEX to RGB Converter — Convert Color Codes Online Free

Hex to RGB Color Converter

Enter a HEX color code and instantly get the RGB, Red, Green, and Blue channel values with a live color preview.

HEX → RGB conversion Live color swatch One-click copy
HEX to RGB Converter
Enter 3, 6, or 8 digit hex — e.g. #1D9D73
Color preview
Red (R)
Green (G)
Blue (B)
CSS Color

About Hex to RGB Color Converter

The HEX to RGB Converter is a free online color conversion tool that instantly translates hexadecimal color codes into their RGB (Red, Green, Blue) equivalents. HEX and RGB are the two most commonly used color formats in web development — HEX is used in HTML and CSS for color values like #FF5733, while RGB is used in CSS functions like rgb(255, 87, 51) and in graphics software.

Both formats represent the same colors — this tool makes it effortless to move between them for design and development work.

How to Convert HEX to RGB

  • Enter your HEX color code (with or without the # symbol, e.g. FF5733 or #FF5733)
  • Click Convert
  • View the RGB values: R (0–255), G (0–255), B (0–255)
  • Also get the HSL equivalent for bonus color model coverage

Understanding the Color Formats

  • HEX — six-digit code where each pair represents Red, Green, Blue intensity in hexadecimal (00–FF)
  • RGB — three numbers (0–255) representing the intensity of Red, Green and Blue
  • HSL — Hue (0–360°), Saturation (0–100%) and Lightness (0–100%)

Use our Color Picker tool to visually select a color and get all formats simultaneously. Use our RGB to HEX Converter for the reverse direction. Both are free with no login required.

Frequently Asked Questions

What HEX formats are accepted?
The converter accepts 3-digit shorthand (#RGB → #RRGGBB), standard 6-digit (#RRGGBB), and 8-digit with alpha (#RRGGBBAA). The leading # is optional. All formats are automatically detected and parsed.
What does the CSS output show?
The CSS field outputs the rgb() or rgba() CSS color function, ready to paste directly into your stylesheet. For 8-digit HEX codes with an alpha channel, the output uses rgba() with the computed opacity value.
What do R, G, B values mean?
R, G, B stand for Red, Green, Blue — the three channels of light that make up every screen color. Each value ranges from 0 (none) to 255 (full intensity). Combining all three at 255 gives white; all at 0 gives black.
Can I also convert RGB back to HEX?
Yes — use our RGB to HEX tool to go in the other direction. Enter your Red, Green, and Blue values (0–255) using the interactive sliders or number inputs and get the HEX and HSL codes instantly.

100+ Free SEO Tools — No Signup Needed

Keyword research, backlink checker, plagiarism detector, meta tags & more. All free, all instant.

Explore All Tools