I have a colour value of rgb(92, 174, 224) and would like to find the rgba equivalent when the opacity is 0.5 (or any value I choose, it could be 0.4) and the background is white rgb(255, 255, 255).
I would like the answer to be in the form of an equation such as:
div (d) = rgb(92, 174, 224) ---- (The colour to match)
background (b) = rgb(255, 255, 255) ---- (The colour behind the transparent colour)
x = (d - (b*0.5)) / 0.5
r = (d - (b*0.5)) / 0.5
g = (d - (b*0.5)) / 0.5
b = (d - (b*0.5)) / 0.5