Here is the code for customising both text colour and background colour at the same time:Â
$ $ \ color {hex code} \ colorbox {hex code} {your text} $ $ (without spacings)
An example of using the code to customise my text “hello” to white text with black background would be:Â
$$\color{#FFFFFF}\colorbox{#000000}{hello}$$
Here is an example of how texts look after using this code: