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.
Color Picker
Interactive visual color spectrum with EyeDropper tool, real-time HEX, RGB, HSL, CMYK values, and shade palettes.
RGB to HEX Converter
Convert Red, Green, and Blue channel values (0–255) with optional Alpha into hexadecimal (#HEX) color codes.
HEX to HSL Converter
Translate HEX colors into intuitive Hue, Saturation, and Lightness coordinates.
HSL to HEX Converter
Convert Hue, Saturation, and Lightness values back to standard web hexadecimal color codes.
RGB to HSL Converter
Translate Red, Green, and Blue color channels directly to Hue, Saturation, and Lightness.
Gradient Generator
Create beautiful Linear, Radial, and Conic CSS gradients with custom angles and multi-color stops.