Below is a list of all of the RGB hexcodes that correspond to the in-game colors used for all 18 different types of Pokémon.
It is worth noting that I got these hexcodes by looking at the code of pages on Poképaste, which uses these same hexcodes for various things such as Pokémon, moves, and Z-Crystals to denote their type.
Of course, the particular colors that they assigned to these particular stats are a bit odd IMO, and so for things that I post here on Paint (like the movesets posted on this group page of mine in a group of DC's) I use these colors instead, which match the colors assigned to each stat in the Pokémon Super Training screen in the Gen 6 games, as well as the stats screen in the Gen 7 games: