title: SASS: convert RGBa back to hex?
body: <p>I am aware SCSS can convert Hex to RGBa, but is there an option for the opposite?</p>
  
  <p>My situation is this: I am given a colour palette that I am not allow to change. This includes a solid accent colour:</p>
  
  <pre><code>$color-accent: #039B15;
  </code></pre>
  
  <p>I've been asked to use this as a pale background colour, with 80% opacity. That's easy, I can just use <code>rgba()</code>:</p>
  
  <pre><code>$color-accent-bg: rgba($color-accent, .2);
  </code></pre>
  
  <p>However, there is a situation where I need to nest elements with the same opaque background colour - because the colours are opaque they darken when nested.</p>
  
  <p>Is there a way I can convert <code>$color-accent-bg</code> back to hexidecimal with SASS?</p>
  
  <p>Ps: tried using <code>lighten()</code> but that seems to only work up to 66% light.</p>