Yes! and the white print stayed white on the colored background! I'm sure that result will vary with fabric brands.
Tea or coffee dying is fairly permanent, as those of us who have spilled know! I don't know how you would get an even density in the water of a front loader -- with a top loading machine, the fabric can be added after the concentrated tea or coffee is mixed evenly with the hot water.
Good luck!