{{subst:color|blue|foo}} generates

foo
<span style="color:blue">foo</span>

regards user:Gangleri