Usually these are weak acids in dye form that changes colour. Some of them have complex chemical structures such as C36H24FeN6O4S
The chemical used depends on the manufacturer and the pH range you use it for.
Aren't these available in places where they sell aquarium products?