How Do You Write "Cool" (Colored Text) in RuneScape?

Colored and formatted text in RuneScape is created using special color codes typed into the chat box. Since the exact syntax can be confusing to explain in plain text, a handy reference guide lists all the available color and formatting codes so you can copy the ones you want.