If an employee doesn't comply with their employer’s Equal Opportunities Policy by discriminating against somebody else, they may be subject to disciplinary action. Such behaviour may lead to the dismissal of that person. This applies to all employees, including those who hold senior positions.
Moreover, discrimination opens you up to the risk of legal liability. For instance:
employers are usually liable for discriminatory practices committed by their employees if they didn’t take all reasonable steps to prevent the employee from acting unlawfully in this way
employees may be personally liable for acts of discrimination
For more information, read Equal opportunities and discrimination.