Forráskód
Elemek száma:
HTML:
<div class="t001">ABC</div>
<div class="t002">ABC</div>
<div class="t003">ABC</div>
<div class="t004">ABC</div>
<div class="t005">ABC</div>

CSS + HEX
<style type="text/css">
   .t001 { color:#ff0000; }
   .t002 { color:#cc0033; }
   .t003 { color:#990066; }
   .t004 { color:#660099; }
   .t005 { color:#3300cc; }
</style>

CSS + RGB
<style type="text/css">
   .t001 { color:rgb(255,  0,  0); }
   .t002 { color:rgb(204,  0, 51); }
   .t003 { color:rgb(153,  0,102); }
   .t004 { color:rgb(102,  0,153); }
   .t005 { color:rgb( 51,  0,204); }
</style>

PHP + IMAGE
<?php

$width 
100$height 100;

$img imagecreate($width,$height);

$t[bgcolor] = imagecolorallocate($img,255,255,255);

$t[001] = imagecolorallocate($img,255,  0,  0);
$t[002] = imagecolorallocate($img,204,  051);
$t[003] = imagecolorallocate($img,153,  0,102);
$t[004] = imagecolorallocate($img,102,  0,153);
$t[005] = imagecolorallocate($img51,  0,204);

imagestring($img500'Hello world!'$t[001]);

header('Content-type: image/png');
imagePNG($img);
imagedestroy($img);

?>
itschykhatschy.com