Color of law

The appearance of a legal right to take some action, although the right may not actually exist.