For this sort of application, clear silicone caulk is usually sufficient. If you find that you have an unusually large space to fill for some reason, you might prefer a color-matched acrylic-latex ...
The casting material is cheap silicone caulking from a hardware store, and color can be added with a small amount of cheap acrylic paint. A few drops of glycerin added to the silicone thins it out ...