Template:Color/doc

This template provides a convenient way to produce colored text in simple cases. Note that if the text is to be displayed as or in some other HTML-style element, it may be necessary to incorporate a   attribute directly into the opening tag of the containing element, instead of using this template.

Usage
See the template's testcases: