We obtain sufficient conditions for the emergence of spanning and almost-spanning bounded-degree rainbow trees in various host graphs, having their edges colored independently and uniformly at random, using a predetermined palette. Our first result asserts that a uniform coloring of G(n, 𝜔(1)∕n), using a palette of size n, a.a.s. admits a rainbow copy of any given bounded-degree tree on at most (1 − 𝜀)n vertices, where 𝜀 > 0 is arbitrarily small yet fixed. This serves as a rainbow variant of a classical result by Alon et al. pertaining to the embedding of bounded-degree almost-spanning prescribed trees in G(n, C∕n), where C > 0 is independent of n. Given an n-vertex graph G with minimum degree at least 𝛿n, where 𝛿 > 0 is fixed, we use our aforementioned result in order to prove that a uniform coloring of the randomly perturbed graph G ∪ G(n, 𝜔(1)∕n), using (1 + 𝛼)n colors, where 𝛼 > 0 is arbitrarily small yet fixed, a.a.s. admits a rainbow copy of any given bounded-degree spanning tree. This can be viewed as a rainbow variant of a result by Krivelevich et al. who proved that G∪G(n, C∕n), where C > 0 is independent of n, a.a.s. admits a copy of any given bounded-degree spanning tree. Finally, and with G as above, we prove that a uniform coloring of G∪G(n, 𝜔(n −2 )) using n−1 colors a.a.s. admits a rainbow spanning tree. Put another way, the trivial lower bound on the size of the palette required for supporting a rainbow spanning tree is also sufficient, essentially as soon as the random perturbation a.a.s. has edges.