If you're going way high, you may need a check valve on the drain pipe. The dirty water will want to run back down into the machine unless you mitigate it somehow. Guy I used to work for did it a number of times, but upon inspection it wouldn't pass a few counties east of here. I did a washer drain into a surge tank at the customer's request. The existing exit to the old septic system was slow, but it worked with the gradual drainage from the surge tank into the system. Not inspected. The rest of the house had been connected to the city sewer system and it was fine. The washer was in the basement and was lower than the city connection. Look up "surge tank" online and see if that might work for you. We made this tank out of a square plastic storage container from HD. Drilled a hole in the bottom with a hole saw and used a rubber washer and a 1.5 male adapter and a matching electrical lock nut and glued pvc pipe into that and connected that into the old septic system. The tank was suspended from the basement ceiling joists using 2x boards to make a platform for it.