A yellow shirt can be neutral enough to support virtually any tie color.
Check the brightness. If the yellow is too bright, keep the tie in a deep, dark, or muted shade to neutralize the impact.
In general, shades of red, orange, blue, black, and purple are suitableA yellow shirt and a pink tie is unconventional, but some flamboyant personalities manage to pull it off.
If you wear a tie of the same color, for example matte gold or yellow, make sure that the suit or trousers are of a contrasting shade.
If it's a lighter shade of yellow, I suggest a dark yellow tie, or even a green tie, which would be a bolder option.
Alternatively, you could try a gold tie with embroidery, but with a color as bright as yellow, you have to choose the best way to make it look amazing and stylish.