What is the HEX code for Transparent color?
Question
I want to set color as transparent. In RGB 255 0 255 with alpha 5 may work as transparent, But How to get it in HEX ?
What is the HEX code for Transparent color
Solution
There is no such thing; transparency is done via another channel.
OTHER TIPS
It depends on the format, some systems require RRGGBB, which doesn't include alpha.
Some have their format as AARRGGBB, so your provided color would be 05FF00FF.
Conversely, some have their format as RRGGBBAA, thus your provided color would be FF00FF05.
You can use rgba(255,0,255,1)
<svg class="svg_element" style="margin-top:0px;margin-left:560px">
<circle cx="25" cy="25" r="20" fill="rgba(128, 0, 128, 0.75)"
stroke="rgba(0, 255, 0, 0.25)" stroke-width="10"/>
<circle cx="75" cy="25" r="20"
fill="rgba(0, 255, 0, 1)"
stroke="rgba(0, 0, 255, 0.1)" stroke-width="10"/>
<circle cx="125" cy="25" r="20"
fill="rgba(255, 255, 0, 0.75)"
stroke="rgba(255, 0, 0, 0.25)" stroke-width="10"/>
</svg>
here is fiddle
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow