Add opacity to hex color code

Best practice to use hex color in opacity colors instead of rgba.

$the-color: #E1B4C0;
background-color: transparentize( $the-color, 0.25);

Now don’t need to find the rgb of $the-color
before: background-color: rgba(225, 180, 192, 0.75);

1 thought on “Add opacity to hex color code

Leave a Reply

Your email address will not be published.