This might be a math-python question but... All I want to do is to print out the hexvalue of all black/white colors for a "fading HTML table". #ffffff, #fefefe, #fdfdfd, ... #020202, #010101, #000000 I can do a loop from 1 to 255, but I don't know where to go from there. BTW, are there non-websafe greycolors? Can the loop be for only websafe ones?