Javascript function to get the color name from RGB value or Hexadecimal value
<p>Need a javascript method to get color name.</p>

<p>Hoping javascript function should look like as follows </p>

<pre><code>function (r,g,b)
{
  ....
  return &lt;color name&gt;; // like blue, cyan, magneta etc etc
}
</code></pre>
