For a JavaScript program I am making, I need to find the alpha value of an overlay layer (#7F7F7F) on top of a color (For example, #4A6CD4), which then had created an output color (For example, #6380DA). So it would look like this:
From top to bottom:
#7F7F7F (The alpha is unknown)
#4A6CD4
Which will output #6380DA. All I need to know is the alpha value of the overlay and how to find it. Can someone please help me?