Forum Discussion
Transparency changes background color
- 5 years ago
Hi Anonymous
You can create a measure with below code
Measure = "rgba(0, 0, 0,0.5)"Now use it as formula in your background color
Thanks,
Samarth
This two textboxes has the same color, but diffrent Transparency. Changing transparency in a visual changes the color. My issue is that I need to keep the color of my visuals matching but I also need to have Transparency at 50% for one of the visuals.
Maby some one knows how much 1% of transparency changes the color so I can compensat the hex or somthing?
For the testing of how much 1% compensates the RGB for Black(00000), I did test in Mspaint using a color picker for each transparent color..
It increases the value by 2.55 for each red, blue and green. But since you cannot put 2.5 in RGB format so it has to be 3 ,5,8,10 ... 25 for 10% .... and 255 for 100%.
Once you get the RGB Value for your color you can easily convert it to HEXA
RGB to Hex color converter (rapidtables.com)