Echoing the suggestion of wearing the non-you color on your bottom half (a skirt, shoes), and/or in an item that you will eventually take off (a coat) or put down (a handbag).

I have a tee in mustard, mustard is not my colour, that I put an orange-red blazer over. So I get my mustard but people see a larger dose of a colour that looks better on me...

What Liesbeth and shevia said.
All the usual— it still has to be a color I actually like. Such as warm fall colors warmer khaki or olive or rust— or optic white for its great summer appeal but that doesn’t look that great on me.
So will wear as pants or skirts, or a T with different jacket, or prints with combo of warm & cool colors work well. Shoes can be almost any color but some neutrals are still better skewing cool.
However, I’m trying to be very careful about what I would buy in such colors.
I love trench coats but think it would be a bad idea for me to invest in most of the tan- beige ones. Too much of the color and too much $$.
So I’m actually trying to use “ right/ best color as an easier way to focus shopping and walk away.
I have the opposite problem of sometimes buying something because I can’t resist the flattering color, and yet it’s not great in other important ways.

If I like a colour and looking at it makes me smile, I wear it - I don't think about whether it flatters me or not. I don't wear beige/light khaki and light grey... though I suspect light grey might work better now that my hair has so much white in it.

With unflattering colors, like black, grey, navy, and fuschia/pink for me, I make sure that those colors comprise no more than 20% of my outfit. Pairing less suitable colors with more flattering colors or neutrals helps too. Sometimes, I add a scarf or necklace in more flattering colors. I definittely keep the unflattering colors away from my face (shoes are OK) but I don't wear them near a body part I don't want draw attention to.

Unflattering colors generally don't appeal to me, but occasionally I will do as many others have mentioned and wear them on the bottom (beige trousers), as a bag (yellow), or as shoes (brown leopard print).