Need to convert a HEX color code into RGB values? This free HEX to RGB Converter quickly converts standard 6-digit HEX colors such as #FF0000 or #336699 into their corresponding RGB values. It also shows normalized RGB values, CSS RGB notation, and a color preview, making it useful for CSS, web development, UI design, and digital projects.
HEX to RGB Converter
Convert HEX color codes to RGB values instantly. Preview your color, get CSS color codes and switch to RGB to HEX conversion whenever you need.
Color Settings
Enter a 3-digit or 6-digit HEX code. The # symbol is optional.
Live Color Preview
RGB Values
Normalized RGB (0–1)
All conversions run locally in your browser. No external API is required. Copy the generated values directly into your CSS or design project.
What Is a HEX to RGB Converter?
A HEX to RGB Converter changes a hexadecimal color code into its equivalent Red, Green, and Blue (RGB) values. Both HEX and RGB are common color formats used in CSS, websites, applications, graphic design, and other digital projects.
For example:
HEX: #336699
RGB: rgb(51 102 153)
The converter performs the hexadecimal-to-decimal calculation automatically, so you don’t need to calculate each color component manually.
What Is a HEX Color?
A HEX color is a way of representing a color using hexadecimal values. A standard six-digit HEX color contains the # symbol followed by six hexadecimal characters.
For example:
#336699
The six characters are divided into three pairs:
33= Red66= Green99= Blue
Each pair can have a hexadecimal value from 00 to FF.
The higher the value, the greater the intensity of that color channel.
What Is RGB?
RGB stands for Red, Green, and Blue. It represents a color using three separate numerical values.
Each RGB component normally ranges from 0 to 255.
For example:
rgb(51 102 153)
means:
- Red = 51
- Green = 102
- Blue = 153
Different combinations of these three values create millions of possible colors.
How to Convert HEX to RGB
A six-digit HEX color contains three pairs of hexadecimal characters. Each pair corresponds to one RGB color channel.
For example:
#336699
can be separated into:
33= Red66= Green99= Blue
Converting each hexadecimal value to decimal gives:
#336699 = rgb(51 102 153)
Our HEX to RGB Converter performs this conversion automatically and also displays the resulting color in the preview box.
HEX to RGB Color Table
Here are some commonly used HEX colors and their RGB equivalents:
| Color | HEX | RGB |
|---|---|---|
| Red | #FF0000 | rgb(255 0 0) |
| Green | #00FF00 | rgb(0 255 0) |
| Blue | #0000FF | rgb(0 0 255) |
| White | #FFFFFF | rgb(255 255 255) |
| Black | #000000 | rgb(0 0 0) |
| Yellow | #FFFF00 | rgb(255 255 0) |
| Cyan | #00FFFF | rgb(0 255 255) |
| Magenta | #FF00FF | rgb(255 0 255) |
| Orange | #FFA500 | rgb(255 165 0) |
| Purple | #800080 | rgb(128 0 128) |
| Pink | #FFC0CB | rgb(255 192 203) |
| Brown | #A52A2A | rgb(165 42 42) |
| Gray | #808080 | rgb(128 128 128) |
| Dark Gray | #404040 | rgb(64 64 64) |
| Light Gray | #D3D3D3 | rgb(211 211 211) |
| Navy | #000080 | rgb(0 0 128) |
| Teal | #008080 | rgb(0 128 128) |
| Olive | #808000 | rgb(128 128 0) |
| Maroon | #800000 | rgb(128 0 0) |
Note: I removed the duplicate Lime entry from your original table because #00FF00 is already the same color as Green.
HEX vs. RGB
HEX and RGB are two different ways to describe the same colors.
For example:
HEX: #336699
RGB: rgb(51 102 153)
HEX uses hexadecimal notation, while RGB expresses the color using separate red, green, and blue values from 0 to 255.
HEX is particularly common in CSS because it provides a compact way to specify a color. RGB can be more convenient when you need to work with individual color channels.
HEX to RGB Conversion Example
Let’s take the color:
#FF5733
Its three HEX pairs are:
FF= 25557= 8733= 51
Therefore:
#FF5733 = rgb(255 87 51)
The converter also calculates the normalized RGB values and CSS percentage representation for the selected color.
What Does RGB (0-1) Mean?
Some applications and graphics systems represent RGB components using values between 0 and 1 instead of 0 and 255.
For example, the RGB value:
rgb(128 128 0)
corresponds approximately to:
0.502, 0.502, 0
The converter displays these normalized values alongside the standard RGB values.
What Is CSS RGB?
CSS supports RGB color notation for defining colors on websites.
For example:
rgb(255 87 51)
represents the same color as:
#FF5733
You can copy the RGB value from the converter and use it in your CSS styles.
When Can You Use a HEX to RGB Converter?
A HEX to RGB Converter can be useful for:
- CSS and website development
- Front-end development
- UI and UX design
- Graphic design
- Website color schemes
- Web applications
- Digital design projects
- Converting colors between design tools
- Working with RGB-based software
- Checking individual red, green, and blue values
Frequently Asked Questions
What is #FFFFFF in RGB?
#FFFFFF converts to rgb(255 255 255) and represents white.
What is #000000 in RGB?
#000000 converts to rgb(0 0 0) and represents black.
What is #FF0000 in RGB?
#FF0000 converts to rgb(255 0 0) and represents red.
What is #336699 in RGB?
#336699 converts to rgb(51 102 153).
What is the RGB value of #808000?
#808000 converts to rgb(128 128 0).
What HEX format does the converter support?
The current converter supports standard 6-digit HEX color codes, such as #FF0000, #336699, and #808000.
Can I enter a HEX code without the # symbol?
Yes. You can enter FF5733 without the # symbol. The converter automatically adds it and processes the color.
What is the difference between HEX and RGB?
HEX represents a color using hexadecimal characters, while RGB represents it using separate red, green, and blue values ranging from 0 to 255. Both formats can represent the same colors.
Can I use the converted RGB value in CSS?
Yes. The RGB value generated by the converter can be used directly in CSS. For example:
color: rgb(51 102 153);
Related Technology Tools
You may also find these NexCalco tools useful: