Our first example is using the Lime Green color code, in order to color the word "hello". To use a color code without any other formatting, simply type the color code ("&a" in this case) as pictured above, and then the text that you want to use without any spacing between the color code and the text you are trying to write.
The second example is using multiple codes to add color and formatting to the same text ("hello"). This will make the text appear as Lime Green, and bolded. To use a color and formatting, simply write the color code (&a) and THEN the formatting code (&l) as pictured above. After typing the codes, write your text. If you want to use more than one formatting code, simply continue adding codes after the initial color code.
The third example is using a hexadecimal color code (Hex or RGB) to write our text in a shade of Red only available in Minecraft via RGB. The RGB Code in this example is #FF253C. Surround it with <> and then write your text, with no spaces in between as pictured above.
Our final example is using a hexadecimal color code (Hex or RGB) and formatting codes to write our text in a shade of Red only available in Minecraft via RGB, while bolded. The formatting code (&l for bold) goes after the RGB color code (<#FF253C> in this case). To add more than one format, simply continue adding formatting codes after the RGB Color Code.