When applying the Tailwind color purple-600/50
to both the background and border of an element, they appear as different colors. It seems like the opacity is not consistent across browsers (tested on Firefox and Safari). View it in action here.
<img src="/img/logo.svg" class="h-6 bg-purple-600/50 border-purple-600/50 border-4 rounded-full" />
- Despite inspecting the css reveals identical rules:
background-color: rgba(147, 51, 234, 0.5);
border-color: rgba(147, 51, 234, 0.5);
- The image itself does not seem to inherently have a background opacity issue, or else the same discrepancy would occur without any css opacity applied:
<img src="/img/logo.svg" class="h-6 bg-purple-600 border-purple-600 border-4 rounded-full" />
What could be causing this inconsistency?