How to use the RGB to HEX
- Paste one or more colors on the left, one per line. Any CSS color works as input, including names like rebeccapurple.
- Keep HEX or pick another format under Convert to.
- Copy the converted colors.
Questions
Is my data uploaded anywhere?
No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.
What about transparency?
Alpha is kept: #1e293bcc becomes rgba(30, 41, 59, 0.8) and back again.
Can I convert colors in VS Code?
Yes. Nifty Colors shows a swatch next to every color in your code and converts it to hex, RGB, HSL or OKLCH from the Command Palette, in CSS, Tailwind, Flutter, Android, Swift and more.