?> ; } .testDiv3{ <?php echo $myPurple->getCssGradient(); ?> color: <?php echo $myPurple->isDark() ? "#EEE" : "#333"; ?> ; } .testDiv3.plain{ background: #<?php echo $myPurple->getHex(); ?> ; color: <?php echo $myPurple->isDark() ? "#EEE" : "#333"; ?> ; } </style> <div class="clear"></div> <div class="block testDiv">phpColor Gradient #<?php echo $myBlue->getHex(); ?> </div> <div class="block testDiv plain">Plain #<?php echo $myBlue->getHex();