How to use
Enter your RGB value
Type into the Input (RGB) field using rgb(r, g, b) form. The tool also parses rgba() strings and plain comma-separated triples, and it loads with rgb(99, 102, 241) as a working sample.
Confirm the swatch matches
Once the value parses, a wide preview swatch appears so you can eyeball the color before trusting the output. An unparseable entry shows a yellow warning instead of results.
Grab the hex code
In the results grid, the HEX row sits highlighted at the top of six formats. One click on its copy button puts the uppercase code, hash included, on your clipboard.
Why RGB to HEX
- Convert any RGB color to HEX, HSL, HSV, CMYK, OKLCH.
- Accepts rgb(), rgba(), or comma-separated triples.