RGB to Hex Converter
Type three numbers (0–255) for red, green, and blue. The hex code updates as you type, with a live color swatch.
#3B82F6
How it works
Each RGB channel (0–255) is converted to a two-digit hexadecimal number, padded with a leading zero if needed. The three pairs are concatenated and prefixed with #.
Frequently asked
- What is the maximum value for RGB?
- 255 per channel (8 bits). 0 is none of that color, 255 is the full channel intensity. (255, 255, 255) is white; (0, 0, 0) is black.
- Why are some hex codes shorter (#FAB instead of #FFAABB)?
- Shorthand is allowed when each pair has matching digits. #FAB is identical to #FFAABB — the parser duplicates each digit.
- How do I get an RGBA hex with transparency?
- Use the alpha slider — it adds two extra hex digits at the end (00 = transparent, FF = opaque).
Other generators
- Stopwatch
- Password Generator
- QR Code Generator
- Hex to RGB Converter
- Barcode Generator
- Base64 Encoder & Decoder
- 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