How do I convert a hexadecimal color to rgba with the Less compiler?
Actually, the Less language comes with an embedded function called fade. You pass a color object and the absolute opacity % (higher value means less transparent): fade(@color, 50%); // Return @color with 50% opacity in rgba