Hex to RGB Converter
Type or paste a hex code (with or without #). The RGB and HSL values update instantly. The preview swatch shows the actual color.
#3B82F6
How it works
Hex codes are parsed as three pairs of hexadecimal digits — each pair representing 0–255 for the red, green, and blue channels. We support 3-digit shorthand (#FAB), 6-digit (#FFAABB), and 8-digit with alpha (#FFAABBCC).
Frequently asked
- What is a hex color?
- A hex color is a hexadecimal representation of an RGB value. #FF0000 means red=255, green=0, blue=0 (pure red). The 3-digit shorthand #F00 expands to #FF0000.
- Does this support alpha (transparency)?
- Yes — paste an 8-digit hex like #FF0000CC and the last two characters are parsed as alpha (0–255).
- Why does my color look slightly different on different screens?
- Different displays have different color profiles (sRGB, P3, etc.). Hex codes are device-independent values; the rendered color depends on your monitor calibration.
Other generators
- Stopwatch
- Password Generator
- QR Code Generator
- Barcode Generator
- Base64 Encoder & Decoder
- RGB to Hex Converter
- Hash Generator
- CSS Gradient Generator
- Lorem Ipsum Generator
- Random Word Generator
- Random Quote Generator
- Username Generator
- UUID Generator
- URL Encoder & Decoder
- Color Palette Generator
- Roman Numeral Converter
- Slug Generator
- Number to Words Converter
Popular calculators
Share
Popular converters
- Centimeters to incheslength
- Kilograms to poundsmass
- Millimeters to incheslength
- Pounds to kilogramsmass
- Celsius to fahrenheittemperature
- Kilometers to mileslength
- Inches to centimeterslength
- Meters to feetlength
- Fahrenheit to celsiustemperature
- Inches to feetlength
- Inches to millimeterslength
- Liters to US gallonsvolume