Template:ExplodeColors

Explodes a 1 - 2 character string of color codes into full color names.

Example:

Output:

Also accepts a  parameter to only return the first color, if desired.