hex with opacity css code example
Example 1: css border opacity
div {
border: 1px solid rgba(255, 0, 0, .5);
-webkit-background-clip: padding-box; /* for Safari */
background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}
Example 2: background opacity css hex
background-color: #ff000088; <--- the 88 is the alpha
background-color: #ff0000 50%;