It seems like this was asked a while ago, but I donβt see where Manuel got the full solution. I had the same problem and this is what I came up with.
If you set the transparency of your shell and then run emacs -nw -q , Emacs default behavior seems to match your shell settings. If yours does not, then there is a chance that you have set some conflicting settings somewhere. Maybe you are using a theme that sets the default background color? If so, you need to change this setting.
If you use one of the built-in themes (for example, adwaita, tango, wombat, etc.), they set the default background color, which overrides the alpha-frame parameter. One solution is to find this theme file and comment out the line that sets this default value. My topics are at /usr/share/emacs/25.3/etc/themes. If it is not there, then switch to your working buffer and evaluate the value of the data-directory variable. This directory should have a subdirectory of topics. To modify the theme file, you may need administrator rights.
The code Jeff gave earlier should work. See Section 28.4: ELisp Manual Frame Parameters. Also check out 51.1.7: Custom Themes in the Emacs Guide. Jeff code will set the frame transparency only for Emacs. This is good if you want it to be different from the transparency of your shell application. If you just want it to follow the behavior of your shell, as I said, this is the default value.
Sonofspock
source share