A yellow shirt can be neutral enough to support almost 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 suitable. A yellow shirt and a pink tie is offbeat, but some flamboyant personalities pull it off well.
If you wear a tie in the same color, such as matte gold or yellow, make sure the suit or pants are a contrasting shade.
If it is a lighter yellow I suggest a dark yellow tie or even a green tie which would be a bolder option.
Otherwise, you can try a gold tie with embroidery, but with a color as bright as yellow, you need to choose the best way to make it stunning and stylish.