The man was treated at King George's Medical University in Lucknow, around 330 miles (531km) east of New Delhi.
He had been fitted with a urinary catheter - a flexible tube that is used to empty the bladder and collect urine in a drainage bag.
The man had been using the catheter in hospital for six months, ahead of planned surgery to cut away part of his enlarged prostate.
He called for doctors when he noticed his purple urine. Doctors wrote in the BMJ Case Reports: "He was alarmed by this discolouration."
Further analysis by medics, led Dr Siddharth Pandey, revealed his purple urine was actually clear - just not its usual, healthy colour.
Tests of his urine tested positive for E. coli, leading doctors to believe he had a UTI. Cystitis is usually caused by E. coli bacteria in the bladder.
This led Dr Pandey and his colleagues to make the rare diagnosis of purple urinary bag syndrome. He was treated with antibiotics.
Doctors say the bluish discolouration of urine is triggered by a series of chemical reactions in the body.
Bacteria responsible for the UTI breakdown metabolites of tryptophan - an amino acid found in food.
This produces indole, which becomes indoxl sulfate, which then oxidises into blue-coloured indigo and the reddish indirubin.
Dr Pandey and his colleagues wrote in the journal: "The combination of indigo and indirubin gives a purple hue to the urine collection bag."
However, the discolouration is completely benign, and often the underlying UTI is considered more concerning to medics.
Women face a higher risk of developing PUBS because they have a shorter urethra, which leaves them more vulnerable to catching UTIs.
Constipation can also boost the odds because it gives bacteria more time to break down tryptophan metabolites in the body.
It is unclear how common PUBS is, but it has been described as an 'uncommon phenomenon' in the journal Clinical Infectious Diseases.
WHAT IS PURPLE URINARY BAG SYNDROME?
Doctors say the bluish discolouration of urine is triggered by a series of chemical reactions in the body.
Bacteria responsible for the UTI breakdown metabolites of tryptophan - an amino acid found in food.
This produces indole, which becomes indoxl sulfate, which then oxidises into blue-coloured indigo and the reddish indirubin.
Dr Pandey and his colleagues wrote in the journal: 'The combination of indigo and indirubin gives a purple hue to the urine collection bag.'
However, the discolouration is completely benign, and often the underlying UTI is considered more concerning to medics.
Women face a higher risk of developing PUBS because they have a shorter urethra, which leaves them more vulnerable to catching UTIs.
Constipation can also boost the odds because it gives bacteria more time to break down tryptophan metabolites in the body.
It is unclear how common PUBS is, but it has been described as an 'uncommon phenomenon' in the journal Clinical Infectious Diseases.