Web & Design Utility
HEX to RGB Converter
Convert 3- or 6-digit HEX colors to RGB values directly in your browser.
Convert HEX to RGB
Method
Three-digit HEX values are expanded by repeating each digit, then each red, green, and blue byte is converted from base 16 to a decimal channel from 0 through 255.
Worked examples
- #FFFFFF → rgb(255, 255, 255).
- #000 → rgb(0, 0, 0).
- #2563EB → rgb(37, 99, 235).
Privacy
The color value is processed locally in the browser.
Limitations
This version supports opaque 3- and 6-digit HEX colors. Four- and eight-digit alpha-channel HEX formats are not included.
For organizations
If you operate a website, learning resource, agency project, or developer platform and want to evaluate this utility as a maintained embed, see developer-platform use cases and agency use cases. PTH Embed is currently a controlled beta with selective qualified tools and aggregate usage metering.
Related tools