When you specify a color in HTML, you combine three hexadecimal numbers between 00 and FF.
<? $red = 204; $green = 204; $blue = 204; printf( "#%x%x%x", $red, $green, $blue); ?>
Maths: %d; English: %d; History: %d; Biology: %d.
and