What is a reasonable isolation voltage for an optocoupler/digital isolator?
If you want isolation from the mains you'll need 1000 to 2000 V isolation voltage. Most optocouplers will provide this. Just keep an eye on the pinning: a standard DIL package with standard pads won't give you the required 6mm clearance. You'll find packages with the rows of pins further apart: