hex color apply opacity code example Example: background opacity css hex background-color: #ff000088; <--- the 88 is the alpha background-color: #ff0000 50%;