color of law

noun

1.
a mere semblance of legal right; something done with the apparent authority of law but actually in contravention of law