Red onions are an excellent choice in salads for their bright colour and are most bearable to eat raw when compared to other varieties. They add crisp texture and make salad appealing. However, there's a subtle difference in flavour between red, yellow and white onions. So it's absolutely fine to use any type of onion as long as you are ok with texture and colour.