php int to color code example Example: php number to color $n = 5; $color = "#".substr(md5($n),0,6);//#e4da3b