I don't know a fully-fledged solution for your case, but Linqpad can help. It's gratis and works on Windows 10.
The following script will convert merge an alpha color with a background color and output the resulting hex code:
// Define input here
var bgcolor = System.Drawing.Color.White;
var alphacolor = System.Drawing.Color.FromArgb((int)(0.55*255), 0, 0, 0);
// Calculation
float factor = alphacolor.A / 255f;
int red = (int) (bgcolor.R * (1 - factor) + alphacolor.R * factor);
int green = (int) (bgcolor.G * (1 - factor) + alphacolor.G * factor);
int blue = (int) (bgcolor.B * (1 - factor) + alphacolor.B * factor);
var result = System.Drawing.Color.FromArgb(red, green, blue);
// Output as hex
Console.WriteLine($"#{result.A:X2}{result.R:X2}{result.G:X2}{result.B:X2}");
For the given input rgba(0, 0, 0, 0.55)
and white
background, the result is
#FF727272
Hints: you need to convert decimal values like 0.55 using the formula (int)(<yourvalue>*255)
. This can only be omitted for the value 0, because the result is 0 as well in this specific case.