The Rainbow Pass isn't something you can simply select from your bag in Emerald — it's tied to event distributions and specific in-game conditions, so using it properly depends on which version and which event you're working from.
Rather than guessing at a code, ask on a dedicated Pokémon or emulation forum and state your exact version. Someone there will know whether your copy can use the pass at all.