If you don’t want a plugin (which requires editing the app.yml and rebuilding discourse and runs the risk of something breaking if the plugin stops working in future, althrough the BBCode color plugin is an official plugin so it’s a lower risk), a add on theme which can done from the admin browser page without having to recompile: