Its color changes for concealment and also when its mood or health changes. The darker the color, the healthier it is.
How Kecleon's in-game sprite changed across the main Pokémon games, from its debut in Generation III onward.