I'm not exactly sure what you mean by this, as this isn't really a game mechanic in 5e unless you're talking about spells such as Color Spray or Prismatic Spray. Are you referring to something close to Magic the Gathering, where major divisions of magic are separated by theme into colors?