RGBA to HEXA
Compact alpha storage
RGBA values are readable in CSS; HEXA is concise for token JSON and style dictionaries. This conversion encodes the alpha fraction into the final byte so color + opacity travel in one string.
Rounding behavior
Alpha decimals may round to nearest 8-bit step (0-255). If you compare outputs across tools, tiny differences can appear in the last byte.