Template:User Template

Here's how it works
On your userpage, write the following:

Note that the colors must all be on the same line, unlike what is shown here

And here's an example:

A full list of color templates can be found.