HEX to RGB Converter — How to Convert Color Codes (Free Guide)
Every web developer needs to convert between HEX and RGB constantly. Here's the fastest way plus everything you need to know.
Convert Free
Use our HEX to RGB Converter — paste any HEX code, instantly get RGB, HSL, and a live color preview. Works both ways.
Quick Reference
| Color | HEX | RGB |
|---|---|---|
| #FF5F1F | rgb(255, 95, 31) | |
| #FFD700 | rgb(255, 215, 0) | |
| #22C55E | rgb(34, 197, 94) | |
| #3B82F6 | rgb(59, 130, 246) | |
| #000000 | rgb(0, 0, 0) | |
| #FFFFFF | rgb(255, 255, 255) |
How HEX Works
HEX colors are 6 characters: #RRGGBB. Each pair is a hexadecimal value (00-FF) for Red, Green, and Blue. #FF0000 = pure red. #00FF00 = pure green. #0000FF = pure blue.
How RGB Works
rgb(R, G, B) where each value is 0-255. Same concept, decimal instead of hex.
In CSS
Both work identically: color: #FF5F1F; is the same as color: rgb(255, 95, 31);
More Color Tools
- Color Picker with palette generator
- CSS Gradient Generator