How to enable true color mode in an OS X Terminal?

True color mode is enabled by default in iTerm 3.0+.

The default MacOS Terminal.app is still limited to a 256 color palette.