The use of color in data can be a conflicting element. If an operation has to be explained to a child for the first time, which of the following two situations will help better understanding:

Unless it's necessary to establish a clear difference between the data set to be displayed:

If this is not necessary, the use of color interferes negatively, it's just decorative noise.
Perhaps I would use another statement to refine your question:
How to differentiate different groups of diagrams using color?
The obvious answer is that the color does not have to be on the content of the diagram, there are other composition elements such as the title, the container frame, the background...

This allows to establish a clear difference in the different groups by the use of color and maintaining a clear perception of the content.