how retrieve Hex value of color of an element with protractor?
<p>I want to get the background color of an element in a DOM using protractor so I'm doing the following.</p>

<pre><code>var redArc = AESummaryTile.performanceChart.element(by.id('myElement')).getCssValue("background-color");
</code></pre>

<p>the problem with this is that it returns an rgba, not an rgb which is what I want. The css file only contains the hex value of the color for this element and when examining the page I only see an rgb value. Is there a reason why protractor returns an rgba instead of rgb. </p>

<p>I found the following references on converting the values but I would like to know if there is a better way to do this using protactor</p>

<p><a href="https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb">javascript - RGB to Hex and Hex to RGB</a>
<a href="https://stackoverflow.com/questions/1740700/how-to-get-hex-color-value-rather-than-rgb-value">how to get Hex value instead of RGB</a></p>

<p>Any help on this would be appreciated</p>