FREE COLOR TOOL

HEX to RGB Converter

Convert a HEX color into RGB values instantly. Create, test, and refine colors with HexBloom.

Use the hex to rgb converter

rgb(51, 102, 204)

What is a HEX color?

A HEX color is a six-digit code used to describe a color in web design. It begins with a hash symbol and contains pairs for red, green, and blue. For example, #3366CC represents a blue tone. Each pair uses hexadecimal digits from 00 to FF, where 00 means none of that channel and FF means the maximum intensity.

How HEX becomes RGB

RGB expresses the same color as three decimal channel values. The first pair in a HEX code becomes red, the second becomes green, and the third becomes blue. Convert each pair from base 16 to base 10: #3366CC becomes rgb(51, 102, 204). The visual color does not change; only the notation changes.

When to use RGB

RGB is useful when a design system, JavaScript canvas, visualization, or CSS workflow needs separate channel values. It is also convenient when you want to adjust one channel programmatically. Modern CSS accepts both HEX and RGB, so choose the format that best fits the tools and conventions of your project.

How to use this converter

Enter a three- or six-digit HEX value, with or without the hash symbol, then select Convert. The tool validates the input before displaying the red, green, and blue channels. Use Copy to place the CSS rgb() value on your clipboard. The conversion runs in your browser and does not require an account.

Color accuracy and practical tips

A HEX-to-RGB conversion is a notation change, not a color-space conversion. The values remain in the standard sRGB channel model used by typical web color codes. If you are preparing accessible interfaces, pair this converter with the HexBloom contrast checker and test the actual foreground and background colors together.

Frequently asked questions

What is #3366CC in RGB?

The HEX value #3366CC converts to RGB(51, 102, 204): red 51, green 102, and blue 204 on the 0–255 scale.

Can I convert a 3-digit HEX color?

Yes. A shorthand value such as #369 expands to #336699 before conversion, so each single digit is repeated.

What do the RGB numbers represent?

RGB describes a color by the intensity of red, green, and blue light. Each channel commonly ranges from 0 to 255 in CSS and digital design.

Explore more HexBloom tools