Legal term: mere semblance of a legal right / the pretense or appearance of a right
In the United States Code, the term color of law describes and defines an official action that has either a “mere semblance of legal right”, or the “pretense of right”, or the “appearance of right”, which adjusts and colors the law to the circumstance, whilst the apparently legal action is itself illegal. In U.S. and U.K. Wikipedia