I have never done this myself and would find a dye or two and read the instructions carefully before deciding which to buy! Good luck!
Carpets have to be very clean. Need to use dye for synthetics. Don't use too much water to get down in pad will cause mold. Can only go darker. There is tutorials on you tube for you to watch.
Hope this post is helpful.