Сдала.
<head>
<title>colrtable</title>
<style>
table td{
width:20px;
height:20px;
}
</style>
</head>
<body>
<script language='javascript'>
for(i=00;i<166;i=i+33){
document.write('<table>');
for(j=00; j<166; j=j+33){
document.write('<tr>');
for(k=00; k<166; k=k+33){var color = i.toString(16)+""+j.toString(16)+""+k.toString(16);
document.write('<td onclick="alert(\'#'+color+'\');"bgcolor=#'+color+'></td>');
}
document.write('</tr>');
}
document.write('</table><br /><br />');
}
</script>
</body>