I would organize the countings hierarchically, starting with the color of balls having the largest number and working downward. Expressed in terms of matrix multiplication similar to this earlier Question and Answer, the final states of two identical buckets vs. all three buckets different can be stated:
$$ \begin{bmatrix} 3 & 2 \end{bmatrix}
\begin{bmatrix} 3 & 6 \\ 0 & 15 \end{bmatrix}
\begin{bmatrix} 2 & 2 \\ 0 & 6 \end{bmatrix}
\begin{bmatrix} 1 & 1 \\ 0 & 3 \end{bmatrix}
\begin{bmatrix} 1 & 1 \\ 0 & 3 \end{bmatrix}
= \begin{bmatrix} 18 & 2826 \end{bmatrix} $$
The maximum number of states to keep track of for this is the number of partitions of the three buckets, i.e. [3],[2&1],[1&1&1]. Note the first of these states disappears with the distribution of the first $5$ blue balls, since they cannot be uniformly placed. If (as in the Comment posted to the other Answer) there were ten buckets, we would have $42$ potential states (the number of integer partitions of $10$). This would accordingly enlarge the sizes of the transition matrices appearing in the matrix multiplication.
A description in words of the present computation of (only the three) distinct bucket outcomes follows.
If the (in this case) five blue balls are distributed into the three (unlabelled) buckets, it will result either in three distinguished buckets or in a pair of equal buckets and a third bucket distinguished from the other two. This is the inevitable result of any of the possible distributions of five balls into three buckets:
[1&1&1] [2&1] after placing blue balls
------- -------
5+0+0
4+1+0
3+2+0
3+1+1
2+2+1
Note that there are two ways to get three distinguished buckets and three ways to get a pair of identical buckets plus a third bucket that differs.
We then apply successive colors of balls to the previously established partitions of buckets. If a pair of buckets are distinguished, they will remain so no matter how the subsequent colors are distributed, and finally we are interested only in those arrangements in which all the buckets have been differentiated.
In the two cases above where the five blue balls already distinguish the three buckets, the remaining colors may be independently distributed into these three buckets as if they were labelled (as indeed they have been labelled by the blue ball placement).
In other words the distribution of a new color into three buckets that are individually distinguished already follows the (relatively) easy stars-and-bars computation, and given the two ways to get three distinguished buckets, we can finish out those countings by multiplying (principle of independent choices):
$$ 2 \times \binom{6}{2} \times \binom{4}{2} \times \binom{3}{2} \times \binom{3}{2} = 1620 $$
While two buckets remain undistinguished (identical so far), we have additional bookkeeping to do, to keep track of the point when they become distinguished. Here the four green balls can be applied in ways that either preserve the equality of the two "twin" buckets, or that distinguish them.
Maintaining their equality requires distributing an even number of the green balls into the twin buckets and splitting those balls equally between them. So if an odd number of green balls are shared by the twin buckets, or if an even number are divided between them unequally, we get down to all three buckets distinguished:
For each twin bucket case [2&1] after placing blue balls:
[1&1&1] [2&1] after placing green balls
------- ------
0+0;4
1+0;3
2+0;2
1+1;2
3+0;1
2+1;1
4+0;0
3+1;0
2+2;0
As this illustrates, the $3$ twin bucket cases after blue balls are placed become $3\times 6=18$ cases of three distinguished buckets and $3\times 3=9$ cases preserving the identical twin buckets after green balls are placed.
We dispose of the current three distinguished bucket cases as before, using the stars-and-bars + independent choice computations:
$$ 18 \times \binom{4}{2} \times \binom{3}{2} \times \binom{3}{2} = 972 $$
This leaves us our next task of placing the yellow balls in the nine cases that twin buckets are still preserved.
For each twin bucket case [2&1] after placing green balls
[1&1&1] [2&1] after placing yellow balls
------- -------
0+0;2
1+0;1
1+1;0
2+0;0
We thus get $9\times 2 = 18$ cases where the three buckets have become distinguished and $9\times 2 = 18$ cases where a pair of twin buckets remains. The former yields eventually this number of arrangements, by placing the final two colors:
$$ 18 \times \binom{3}{2} \times \binom{3}{2} = 162 $$
The $18$ cases where twin buckets remain after placing yellow balls result as follows when the red ball is placed:
For each twin bucket case [2&1] after placing yellow balls
[1&1&1] [2&1] after placing red ball
------- -------
0+0;1
1+0;0
Thus we get an additional $18$ cases where the buckets are all three distinguished, and also $18$ cases where twin buckets persist. The former gives us eventually:
$$ 18 \times \binom{3}{2} = 54 $$
and the $18$ cases where twin buckets persist after placing the red ball force us to use the placement of the final black ball to break their symmetry.
That adds a final $18$ outcomes (with all bucket counts differing).
So the total number of ways to place these colored balls in the three buckets so that no two buckets are alike is:
$$ 1620 + 972 + 162 + 54 + 18 = 2826 $$