What do the various locked door colors mean?

To open these doors, you need to get a key of the same colour.

You can get the keys from guards or from prisoner stashes. Be warned, though - you need to make a copy of the key, if you take it from a guard, else they will notice.

The key copy also has limited use, so plan accordingly.