Task path / input to outcome
How to convert a HEX color to RGBA
- 01
Enter the HEX color
Type the value into the HEX color field, which starts with #6D5EF8CC filled in. The strict parser accepts #RGB, #RGBA, #RRGGBB, and #RRGGBBAA — the helper under the field lists exactly these four formats, and the field caps input at nine characters.
- 02
Run the conversion
Press Convert to RGBA. The parser validates the whole value before anything renders, and a malformed value is rejected with a message that names the four accepted formats. Editing the field clears the previous result, so the panel below never shows a stale color.
- 03
Read the RGBA channels
Alpha is decoded as its byte divided by 255 without rounding during calculation. RGBA and the channel display use up to six decimals; all 256 alpha bytes round trip through the exported RGBA.
- 04
Check the swatch
The large preview swatch renders the converted color directly, so a translucent result is immediately visible against the page. Use it to confirm the alpha reads the way the design intended before copying.
- 05
Load the sample if needed
Press Load sample to run a complete example — #22C55E99 converts to rgba(34, 197, 94, 0.6) — which shows the full flow from input to channels. Reset returns the field to #6D5EF8CC and clears the result.
- 06
Copy or download the result
Press Copy output to copy the rgba() value to the clipboard, or Download to save it as toolars-color-rgba.txt. Both actions stay disabled until a conversion has succeeded, so you never copy an empty result.