Le code PHP :
<?php
$couleur=array("00","11","22","33","44","55","66","77","88","99","AA","BB","CC","DD","EE","FF");
for ($rouge=0;$rouge<count($couleur);$rouge++)
{
echo "<table>";
for ($vert=0;$vert<count($couleur);$vert++)
{
echo "<tr>";
for ($bleu=0;$bleu<count($couleur);$bleu++)
{
$couleurCellule=$couleur[$rouge].$couleur[$vert].$couleur[$bleu];
echo "<td width='30px' height='15px' bgcolor='#".$couleurCellule."'>";
echo "<a href='#".$couleurCellule."'><img src='img/trans.gif' width='28' height='12' border='0' alt='' /></a>";
echo"</td>";
}
echo"</tr>";
}
echo"</table>";
}
?>