# How to find translucent colour from the background colour and fused colour?

I need to find the rbg values and opacity of a colour that is translucent. I have the RGB values of the background colour and the fused colour.

As you can hopefully see in the image above, I'm looking for the RBG values and opacity of a reddish-orange colour. Is this possible?

• I don't think this is answerable. To me it seems like different colors/opacities were used. Or some non-linear application of the opacity was used. I say that because all the r values of the "fused" colors are the same but the g and b differ Apr 23, 2023 at 20:11
• With a bit of humour I could guess that you are trying to get help with some math-homework. More seriously, please share how you obtain your values of the background and fused areas. Looks like you just built this image for this question. Is there a source? If it is confidential customer material, could you maybe share the original in super-cropped form just the section concerning your question? I believe some users could help you better if you give more detail. The clues might be in what you have but not see. Apr 27, 2023 at 21:52

I have been experimenting with this problem for a while now, and it can be solved, both mathematically, as well as experimentally, although the outcome in both situations is fuzzy on my end.

In both setups I have set the background or base layer as the colour to be calculated, while my overlay is your background color. The blend mode used for this example is soft light, and following the formula given for soft light blend mode colour calculation here you can calculate your rgb values for each value (formula taken from here), where a is the base layer value, and b is the overlay layer value. In your case, b is the unfused colour, a is unknown, the fused colour is the mathematical result of the formula, which is known.

Also, the overlay colour layer is set to soft light blend mode, just to clarify that again, because it is reversed compared to your example setup.

To calculate each value, you would express each value as divided by 255. Look at the following example for calculating the a value for red of the base layer:

Since b is ≥ 0.5 (b = 208/255), I have used the lower formula of the split formula.

This solved for a gives us or roundabout 245. This is the red value of the overlay.

Continuing for green and blue below.

Calculating for a’s green value gives us this

which solved for a gives us or roundabout 172. This is the green value of the overlay.

For the blue value, we need to use the upper formula as defined above, because 71/255 is < 0.5, which leads us to this:

which solved for a gives us the final value of our overlay colour, blue as or roundabout 106.

And here it breaks down, because the calculated values for the overlay colour is noticeably off, although I can’t say where the fault lies: my calculated colour for the overlay is 245 172 106 or #f5ac6a, following the above formula.

On the other hand, through experimentation, I have found that the colour values of 248 174 87 or #f8ae57 are much closer to the example provided. I assume that further calculation, using the other two overlay & resulting colour pairs will provide more precision through averaging all three, for instance, but in theory calculating the one should be enough, provided it is one colour with one singular opacity of 1, like Zach Saucier has mentioned in the comments.