RGB to HEX
Convert RGB values to HEX color
How to use
- Enter red, green, and blue values (0–255).
- The matching HEX colour code appears instantly.
- Copy the HEX value for your CSS or design tool.
Why use this tool
- Instant conversion: Turn any RGB triplet into a HEX code as you type.
- CSS-ready: Output is a standard #RRGGBB code you can paste anywhere.
- 100% private: Everything runs in your browser. Your data is never uploaded to a server, so it's safe for confidential content.
Frequently asked questions
What's the range for RGB values?
Each of red, green, and blue runs from 0 to 255, which maps to a two-digit hex pair in the final code.
Why use HEX over RGB?
They're equivalent; HEX is a compact string that's common in CSS and design files, while RGB is more readable as separate numbers.
Is it private?
Yes. The conversion runs in your browser.
Back to all tools