- Create a background layer in the desired color
- Select the paths that should form the mask and create a compound path
- Expand the transparency window
- Open the options menu and make sure ‘new opacity masks are inverted’ is selected
- In the same menu choose ‘make opacity mask’