RGB to HEX Converter
Enter red, green and blue values to get the HEX colour code instantly, or convert a whole list.
Loading tool…
Need help with this tool or found a problem? WhatsApp support Email
What does the RGB to HEX Converter do?
Each RGB channel (0–255) is converted to two hexadecimal digits and joined: rgb(79, 70, 229) → #4F46E5. Add an alpha value below 1 to get an 8-digit HEX code with transparency.
The bulk box accepts lines like rgb(255, 87, 51) or 0,128,255 and converts them all at once.
How to use the RGB to HEX Converter
- Enter R, G and B values (0–255) and optional alpha.
- Copy the HEX code.
- For many colours, paste them into the bulk box.
Examples
Conversion
rgb(0, 128, 255) → #0080FF.
Common use cases
- Writing CSS from design specs
- Converting screenshots’ RGB readings
- Preparing brand guidelines
Features and benefits
- Private by design — your data is processed on your device and never uploaded.
- Free with no account, no watermark and no usage limits.
- Works on phones, tablets and desktops in any modern browser.
Limitations to know
- Values outside 0–255 are rejected.
Frequently asked questions
How do I convert RGB to HEX?
Convert each number to base 16 and pad to two digits: 255 → FF, 0 → 00.
Uppercase or lowercase?
Both are valid in CSS; choose your preference.
What about alpha?
An alpha below 1 adds a fourth hex pair.
Related tools
All developer toolsHEX to RGB Converter
Convert HEX colour codes to RGB and RGBA values.
Color Converter
Convert colours between HEX, RGB, HSL, HSV and CMYK.
Color Picker
Pick a colour and get shades, tints and contrast ratios.
Utility ToolsRGB Color Converter
Mix colours with RGB sliders and convert to HEX, HSL and CMYK.
Converter ToolsImage Color Picker
Pick colours from any image and get HEX, RGB and HSL values.
Image ToolsUnix Timestamp Converter
Convert Unix timestamps to dates and dates to timestamps.