RGBA Color Finder Calculator

The problem: given a final color and a background color, how do you find a color and transparency combination that matches the final color?

Equations from a Stack Overflow post.

R G B Alpha
Background color:
Desired final color (overlapping area):
Desired alpha:
Color required (foreground): x x x <<< any red numbers means it's not possible! (try increasing alpha)