White labeling is not illegal in itself, but it can become illegal if it violates intellectual property rights or violates contractual agreements. It is important for companies to ensure they have the necessary rights and comply with laws and regulations when engaging in white labelling.