Generate a color object from string color
<p>I want to convert RGB string to hex-color code. For example :</p>

<pre><code>   string rgb = rgb(0, 0, 255);
</code></pre>

<p>From above RGB I want to get:</p>

<pre><code>   string hex = #0000FF;
</code></pre>
