<?php
$color="297882";
$n=6;
for ($i=0;$i<$n ;$i++ )
{
$d[] = dechex($color[$i]+2);
$e[] = dechex($color[$i]+4);
}
$c = implode("",$d);
$c2 = implode("",$e);
//echo $c;
?>
<table>
<tr>
<td width=100 bgcolor="#<?=$color?>"> </td>
</tr>
<tr>
<td width=100 bgcolor="#<?=$c?>"> </td>
</tr>
<tr>
<td width=100 bgcolor="#<?=$c2?>"> </td>
</tr>
</table>