var cl = ['00','33','66','99','CC','FF'];
var clist = [];
for(var x1=0; x1for(var x2=0; x2 for(var x3=0; x3 clist[clist.length] = cl[x1]+cl[x2]+cl[x3];
You can see the test output here: http://www.rainfireweb.com/drip/testcolor.html
Lisp advocacy
var cl = ['00','33','66','99','CC','FF'];
var clist = [];
for(var x1=0; x1for(var x2=0; x2 for(var x3=0; x3 clist[clist.length] = cl[x1]+cl[x2]+cl[x3];