RGBA to HEXA
RGBA to hexa (more accurately, RGBA to hex) converts a color from its Red, Green, Blue, Alpha (RGBA) format to its eight-digit hexadecimal (#RRGGBBAA) representation. The red, green, and blue components (0-255) are converted to their two-digit hexadecimal equivalents (00-FF). The alpha value (transparency, typically 0.0-1.0) is scaled to 0-255 and then also converted to its two-digit hexadecimal equivalent. These four values are concatenated to form the final eight-digit hex code