HEX to RGB Converter
Convert 3-digit, 6-digit, and 8-digit alpha HEX color codes to RGB and RGBA formats.
Supports 3-digit (#FFF), 6-digit (#8B5CF6), or 8-digit alpha (#8B5CF680).
Color Science & Standards
Conversions follow standard sRGB color space and W3C / WCAG 2.1 accessibility guidelines.
How to Use HEX to RGB Converter
Paste or type your HEX color code (e.g. #3B82F6 or #FFF).
Instantly view individual Red, Green, and Blue decimal channel values (0–255).
Copy standard CSS `rgb(r, g, b)` and `rgba(r, g, b, a)` snippets.
Frequently Asked Questions
Can I convert 3-digit shorthand HEX codes like #F00?
Yes! 3-digit shorthand #RGB automatically expands to #RRGGBB (e.g., #F00 becomes #FF0000, which is rgb(255, 0, 0)).
How does 8-digit HEX with transparency work?
In an 8-digit HEX code (#RRGGBBAA), the last two characters define the Alpha transparency channel from 00 (0% transparent) to FF (100% opaque).
Explore Companion Color Tools
Free client-side color pickers, converters, CSS gradient generators, and WCAG contrast tools.