for i in range(50):
    h = randint(90, 140)
s = uniform(0.2, 1)
v = uniform(0.3, 1)
r, g, b = hsv_to_rgb(h, s, v)
r, g, b = [(x * 255) for x in (r, g, b)]
print("<span style='background:rgb(%i, %i, %i)'>\xc2\xa0\xc2\xa0</span>" % (r,
    g, b))
if __name__ == '__main__':
    main()
How to generate random 'greenish' colors