Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
var r = 0, g = 255, b = 153;
var hex = '#' + 
          (
              (1 << 24) +
              (r << 16) +
              (g << 8) + b
          )
          .toString(16)
          .substr(1);
console.log(hex); // '#00FF99'
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
miguelmotapro
0viewers