HEX to RGB Converter: Turn Hex Color Codes into RGB
Paste a hex code like #1E90FF and get its RGB values instantly, with a live preview. Handles shorthand and transparency. Free, no signup.
Convert Hex Codes to RGB Instantly
Designers hand over hex codes, but plenty of places want RGB instead: CSS with transparency, Android and iOS code, Excel's color settings, game engines and LED controllers. Paste the hex code, copy the RGB values, and skip the mental math in base 16.
Read more
How Hex to RGB Conversion Works
A hex color is three pairs of base-16 digits: one each for red, green and blue. Each pair converts to a number from 0 to 255. Take #1E90FF: 1E = (1 × 16) + 14 = 30 (red) 90 = (9 × 16) + 0 = 144 (green) FF = (15 × 16) + 15 = 255 (blue) So #1E90FF is rgb(30, 144, 255). The converter does this for you, but it's handy to know when you want to sanity-check a code by eye.
Shorthand and 8-Digit Hex Codes
Three-digit codes are shorthand: each digit is doubled, so #F0C means #FF00CC, which is rgb(255, 0, 204). Eight-digit codes add an alpha (transparency) pair at the end, sometimes called HEXA. #1E90FF80 converts to rgba(30, 144, 255, 0.5), because 80 in hex is 128, about half of 255.
Live Preview to Catch Typos
Every conversion shows a color swatch. If you meant blue and see orange, you'll know a digit got swapped before it ends up in your code.
Convert a Whole Palette at Once
Turn on Convert each line separately and paste a list of hex codes, one per line, to get the RGB values for an entire brand palette or theme in one pass.
Common Hex to RGB Colors
White: #FFFFFF = 255, 255, 255 Black: #000000 = 0, 0, 0 Red: #FF0000 = 255, 0, 0 Lime green: #00FF00 = 0, 255, 0 Blue: #0000FF = 0, 0, 255 Yellow: #FFFF00 = 255, 255, 0 Orange: #FFA500 = 255, 165, 0 Gray: #808080 = 128, 128, 128 Navy: #000080 = 0, 0, 128 Dodger blue: #1E90FF = 30, 144, 255
How to Convert Hex to RGB
Paste your hex code
Choose the output
Click Convert
Copy the RGB values
HEX to RGB FAQs
Answers about converting hex color codes to RGB.
How do I convert hex to RGB?
What is #FFFFFF in RGB?
Do I need the # symbol?
How do I convert an 8-digit hex (HEXA) to RGBA?
Can I convert hex to RGB in Excel?
How do I convert hex to RGB in JavaScript or Python?
Is hex or RGB better?
Is "colour hex to RGB" any different?
Need it the other way round?
Turn RGB values back into a hex code with RGB to HEX, or get HSL and CMYK as well with our Color Converter.
RGB to HEXRaheel Jakhura
CEO / Co-Founder
Our goal is to provide online free tools so you don't have to install any software for basic usages. We are trying to add more tools and make these tools free forever.