Pretty easy faking colored caustics in cycles mixing a transparent shader and a Glass/Principled Shader with these nodes.
However that trick does not work in EEVEE
You could create it by using a color ramp on the surface material or a projection of color on the shadow if it's a still image it's a crude hack that changes the surface instead. like this: This trick maps the shadow area to a different color.