Function color

Format text to appear colored according to foreground, and optional background coloring, to IRC clients that support it.

string color (
  string text,
  Color foreground,
  Color background = null
);

There are enumerations available for the color codes here.