Table of Web-safe Colors

$hex = array("00", "33", "66", "99", "CC", "FF"); for ($red = 0; $red < 6; $red++) { for ($green = 0; $green < 6; $green++) { print("\n"); for ($blue = 0; $blue < 6; $blue++) { $color = "#" . $hex[$red] . $hex[$green] . $hex[$blue]; if ($red > 3 || $blue > 3 || $green > 3) $textColor = "black"; else $textColor = "white"; print(" \n"); } print("\n"); } } ?>
$color