There is no legitimate way to get them. Coloured gloves were never an ordinary in-game reward, and the method that circulates requires third-party tools such as a Toontown "spoofer" alongside Panda3D, some of which have carried a price tag. Using them breaks the game's terms of service and risks the account.
The rumour that keeps the question alive is that coloured gloves unlock a hidden area called Funny Farm, a playground only glove-owners can enter. That may well have been true on some private servers. It does not make the route to it safe.
If you want the cosmetic, the reliable answer is to keep an eye on official events, since that is how Toontown distributed its rarest items. And note that the official game closed in 2013, so this now only applies to private recreations.