Task path / input to outcome
How to convert an RGBA color to HEX
- 01
Enter the channel values
Type an rgb() or rgba() value into the RGB or RGBA color field — the field opens with rgba(109, 94, 248, 0.8) filled in and accepts up to 64 characters. Red, green, and blue must be integers from 0 to 255, alpha a number from 0 to 1; percentages and out-of-range channels are rejected.
- 02
Run the conversion
Press Convert to HEX. The parser validates every channel before converting, and the previous result clears as soon as you edit the field, so the panel never shows a stale value.
- 03
Read the hexadecimal result
The result is an uppercase hex value: #RRGGBB when the color is fully opaque, #RRGGBBAA when the alpha is below 1. The alpha byte is the alpha multiplied by 255 and rounded, so 0.8 becomes 204, written CC.
- 04
Review the individual channels
The result channels and preview show the exported HEX color after alpha is quantized to an 8-bit byte. For example, input alpha 0.65 becomes 166/255, displayed as 0.65098. This is an output preview, not an unchanged copy of the input alpha.
- 05
Load the sample conversion
Press Load sample to watch a full run: rgba(14, 165, 233, 0.65) converts to #0EA5E9A6, because 0.65 times 255 rounds to 166, which is A6 in hex. Reset returns the default rgba(109, 94, 248, 0.8) input.
- 06
Copy or download the result
Press Copy output to copy the hex value, or Download to save it as toolars-color-hex.txt. Both stay disabled until a conversion has succeeded.