RGBA to HEX Converter
Enter RGBA values or an rgba() CSS string and get the HEX color code instantly with a live preview and one-click copy.
RGBA Input
Sets R, G, B channels
HEX Output
#FF5733 / A:1.00
Reverse: HEX to RGBA
Enter a 6-digit or 8-digit HEX code to extract R, G, B, and A values.
Copied!
Summary
Enter RGBA values or an rgba() CSS string and get the HEX color code instantly with a live preview and one-click copy.
How it works
- Each RGB channel (0-255) is converted to a two-digit hex pair. The alpha value (0.0-1.0) is multiplied by 255, rounded, and also converted to a hex pair. When alpha is 1 the output is #RRGGBB; otherwise it is #RRGGBBAA.
Use cases
- Convert CSS rgba() colors to HEX for design tools that require hex codes.
- Generate #RRGGBBAA 8-digit hex values for Android XML or iOS asset catalogs.
- Translate translucent design tokens from rgba notation to hex notation.
- Reverse-engineer HEX colors from RGBA values found in stylesheets.
Frequently Asked Questions
Related tools
Last updated: 2026-05-28 ·
Reviewed by Nham Vu