nifty colors

I'm sorry if this has been asked before, but I went through the memories and didn't find anything.
I'd like to know how to make icons like these:



They were made by porcelainveins and tokyoroom

Thanks in advance for any help you guys can give me!