It's not only H2O2 Inside the ampoule, but a mixture of H2O2 and NaOH (as a catalyst)
the other part of the glowstick is Diphenyl Oxalate (or bis-(trichlorophenyl) oxalate, bis(dinitrophenyl)oxalate , or in general, [bis(aryl)oxalates]) and the apropriate coloring (fluorescent dye) compound
Interesting is that very few places mention the NaOH beeing there (though you can see the CORROSIVE sign in the GlowStick case)
The dyes can be :
Red - Rhodamine B
Orange - Rhodamine 6G (5,12-Bis(phenylethynyl)-naphthacene)
Yellow - Rubrene
Green - 9,10-Bis(phenylethynyl)-antracene
Blue - 9,10-Diphenylantracene
An easy preparation of the Oxalates follows (If anyone needs them anyway) (Copy & Paste from a book)
Preparation. Convenient esters are bis(2,4-dinitrophenyl)oxalate (DNPO) and bis(2,4,6-trichlorophenyl)oxalate (TCPO).
"Dry a solution of 9.2 g of 2,4-dinitrophenol (or 9.94 g of 2,4,6-trichlorophenol) in 125 ml of benzene (or toluene) by azeotropic distillation of the water with 25 ml of the solvent. Cool the solution to 10 oC and add dropwise with stirring 5.05 g triethylamine followed by 3.5 g ethanedioyl dichloride (oxalyl chloride). Allow the mixture to warm up to ambient temperature and keep it at this temperature overnight. Distil off the solvent under reduced pressure (rotary evaporator if available). To the residue add 25 ml trichloromethane (chloroform), shake, filter off the solid product in a Buchner funnel, wash it with a little trichloromethane on the filter pad. Recrystallization of the product is no normally required but if desired DNPO can be recrystallised from nitrobenzene or ethyl acetate and TCPO - from benzene."