General tool / 10
RGB to HEX
Convert red, green, and blue channel values into six-digit HEX notation.
RGB to HEX: TOEA rounds valid channel values, converts them to base 16, and pads each channel to two digits. Runs 100% locally in your browser with zero server file uploads.
- Category
- Everyday tools
- Runs
- In your browser
- Cost
- Free · no sign-up
- Availability
- Ready to use
Runs entirely in your browser
Result
Local calculation#63C42D
Where RGB values come from
Values read from a screenshot or an app's color picker are not always the color a designer specified. Screens and screenshots can carry a wide-gamut profile such as Display P3, and a picker may report those numbers rather than sRGB ones, so the same button can read a few units off in each channel. Take the value from the source file or style sheet where you can, or from the original image with the image color picker. Percentages convert by multiplying by 2.55: rgb(40%, 77%, 18%) is roughly 102, 196, 46.
Short codes and letter case
The result is always six uppercase digits. Case makes no difference to browsers, but matching a style guide's case keeps search and replace reliable. A code can be shortened to three digits only when each pair repeats a digit: #AABBCC becomes #ABC, while #63C42D has no short form. Fractional channel values are rounded, so two slightly different inputs can give the same code; to check the reverse, use HEX to RGB.
How to use it
- Enter RGB values from 0 to 255.
- Review the live HEX result.
- Copy the color.
Privacy & limitations
Conversion stays in the browser.
Related tools
Frequently asked questions
Does this upload my input?
No. The work happens in your current browser tab.
What range can I enter?
Each RGB channel must be between 0 and 255.
Free tool · runs in your browser · no account required