title: How do I convert a hexadecimal color to rgba with the Less compiler?
body: <p>I have the following code:</p>
  
  <pre><code>@color : #d14836;
  
  .stripes span {
      -webkit-background-size: 30px 30px;
      -moz-background-size: 30px 30px;
      background-size: 30px 30px;
      background-image: -webkit-gradient(linear, left top, right bottom,
          color-stop(.25, rgba(209, 72, 54, 1)), color-stop(.25, transparent),
          color-stop(.5, transparent), color-stop(.5, rgba(209, 72, 54, 1)),
          color-stop(.75, rgba(209, 72, 54, 1)), color-stop(.75, transparent),
          to(transparent));
  </code></pre>
  
  <p>I need to convert <code>@color</code> to <code>rgba(209, 72, 54, 1)</code>.</p>
  
  <p>So I need to replace <code>rgba(209, 72, 54, 1)</code> in my code with a Less function that generates an <code>rgba()</code> value from my <code>@color</code> variable.</p>
  
  <p>How can I do this with Less?</p>