If they are the same species they can breed together. For instance, all the different colours of dwarf gourami (red, blue and striped) can breed together, and all colour variants of three spot gouramis (opaline, gold and blue gouramis) can breed together. But you won't get the three spot varieties breeding with a dwarf or a pearl as they are different species.