RGB to HEX
Convert RGB values to a HEX color code instantly — free and private.
100% private — everything runs in your browser
How to Use
- 1
Enter the red, green and blue values (0–255) in the three fields.
- 2
The HEX code appears instantly with a live color preview.
- 3
Or use the color picker — the RGB fields update automatically.
- 4
Copy the HEX code with one click.
Examples
Convert rgb(59, 130, 246)
Input
R 59 · G 130 · B 246Output
#3B82F6Convert rgb(255, 99, 71)
Input
R 255 · G 99 · B 71Output
#FF6347FAQ
How are RGB values converted to HEX?
Each channel is written as two hexadecimal digits and joined: 59 → 3B, 130 → 82, 246 → F6 — giving #3B82F6.
What is the valid range for each channel?
0 to 255. The tool only accepts whole numbers within this range.
Is anything uploaded?
No — the conversion runs locally in your browser.
Related Tools
Color Blindness SimulatorPreview a colour or image through protanopia, deuteranopia, tritanopia and achromatopsia.HEX to RGBConvert HEX color codes to RGB values instantly — free and private.Color ConverterConvert between HEX, RGB, HSL, HSV and HWB color formats in any direction.Color PickerPick any color and copy its HEX, RGB, HSL and HSV values instantly.Gradient GeneratorCreate CSS linear and radial gradients visually and copy the CSS code.Contrast CheckerCheck the WCAG contrast ratio between text and background colors instantly.