set transparency for a color css code example Example: css opacity background color background: rgba(255, 255, 255, 0.25);