title: How to get a RGB color scale in Chroma.js
body: <p>I'm using the <a href="https://gka.github.io/chroma.js/" rel="nofollow noreferrer">Chroma.js</a> library to generate a color scale.</p>
  
  <p>So far I'm using this to generate 25 'rainbow' colors:</p>
  
  <pre><code>var scale = chroma.scale(['red','orange','yellow','green','blue','purple']).colors(25);
  </code></pre>
  
  <p>But when I log each color:</p>
  
  <pre><code>for (var i = 0; i &lt; scale.length; i++) {
     console.log(scale[i]);
  }
  </code></pre>
  
  <p>The color is a HEX color like <strong>#ff0000</strong>, how do I get it to be <strong>RGB</strong>?</p>