Dark colors are traditional funeral attire in the Western world. People also wear gray, muted, or neutral colors. White is often paired with darker colors as in wearing a white shirt or blouse with a suit.
White is the traditional funeral attire in many areas of East Asia. Buddhists and Hindus wear white for funerals.
I am a big believer in following the traditions of the people that you mix with, especially for a formal occasion like a funeral. There is an old adage that goes "when in Rome do as the Romans do, sensible and polite advise. If you attend a Western funeral where everyone is dressed in somber colors, a white outfit will make you stand out, drawing attention to yourself. You do not want to draw attention to yourself at such an event.