I use:
CODE
$put(album_colour,$hsl($mod($div($crc32($if3(%musicbrainz_albumid%,%musicbrainz album id%,%live%,%album%,%title%)),240),220),160,100)
)
$put(album_colour2,$hsl($mod($add($mod($div($crc32($if3(%musicbrainz_albumid%,%musicbrainz album id%,%live%,%album%,%title%)),240),220 ),128),256),150,120)
)
The last two numbers for each one are the saturation and lightness, the "magic numbers" are to make the hue. Changing them as and effect on the spread and range of colours. album_colour2 has the opposite hue to album_colour.