title: How to pick a color and save as RGB on Laravel?
body: <p>I am trying to store RGB value in the database (like "255,255,255" for my laravel project. So that I can use it on a custom style of a div. So far I only found this code to select color in form. (which stores as hex)</p>
  
  <pre><code>{{ Form::input('color', 'color', null, array('class' =&gt; 'input-big')) }}
  </code></pre>
  
  <p>Problem for me is that I want to use the color as RGB so that I can use it with different opacity levels:</p>
  
  <pre><code>background: linear-gradient(rgba( {{ $post-&gt;category-&gt;color . ",0.5" }} ) 0%, rgba( {{ $post-&gt;category-&gt;color . ",0.25" }} ) 100%);
  </code></pre>