HEX to RGB Converter
Convert HEX color codes to RGB and back instantly. Supports 3 and 6 digit HEX values, validates input and copies results. Free, private, browser-based.
All processing happens locally in your browser. Files are never uploaded.
HEX to RGB
RGB to HEX
Introduction
HEX to RGB Converter translates between the two most common web color formats. Type a HEX code such as #6366f1 to get its RGB values, or enter R, G and B channels to get the equivalent HEX code. It accepts both 3 and 6 digit HEX shorthand and validates every input.
Features
- Convert HEX to RGB with one click
- Convert RGB channels back to HEX
- Supports 3 digit shorthand like #fff
- Validates channels between 0 and 255
- Copy the result instantly
How to use
- 1Type a HEX color code into the HEX to RGB box and click Convert.
- 2Or enter R, G, B values in the RGB to HEX box and click Convert.
- 3Read the validated result in the output row.
- 4Click Copy to put the result on your clipboard.
Frequently asked questions
Related tools
Color Picker
Pick colors with a native color wheel and instantly convert between HEX, RGB and HSL. Copy any value with one click. Free, private, runs in your browser.
CSS Gradient Generator
Build beautiful linear and radial CSS gradients. Add color stops, tune the angle, preview live and copy the ready-to-use CSS. Free, private, browser-based.
Box Shadow Generator
Design CSS box shadows visually. Tune offset, blur, spread and color, toggle inset shadows, preview live and copy the CSS. Free and private.