Skip to main content

Convert hex value to rgba with opacity

You can convert hex values to have alpha or opacity set to like 0.2 or what ever you want by using the following line of sass:

rgba(#CCCCCC, 0.2);

Or if you are using variables then you can do it like this:

rgba($color-gray, 0.2);