Color Formula, 2 colors, 1 alpha

Hi. Does anyone know the formula to find the resulting color when i have a top color, a bottom color and an alpha value for the top color?

For example:

top color: FF0000
bottom color: FFFFFF
top color alpha: 50%

resulting color: FF7F7F

Thanks if you can figure this out.