It would be visually strange to see colors of different saturation, at least. Having unmatched colors affect perception and readability.
I think it’s important to balance. Don't choose colors that are "far" from each other, and don't try to make them too similar in terms of their hue/saturation/...
Try to use some websites that allow to choose color for dataviz like:
Also, I found articles like this one to be great (there are some great examples): https://blog.datawrapper.de/beautifulcolors/
“So if your color combination doesn’t look awesome yet, don’t immediately add another hue. Change the saturation and lightness first and see if that’s better.”
So, just play around
Last but not least, someone probably would recommend to consider some accessibility guides/standards to improve readability. However, in my experience, they can be rather tricky to deal with in UI because such guides are more geared towards webpages with (long) articles, not for modern-day UI with a variety of different elements. My humble opinion. But it depends on the system