"To match the occasion" means to choose or do something that is appropriate for the specific event, situation, or context. It involves selecting something that suits or is in harmony with the particular occasion or setting. Full definition
The wide selection of watch faces and straps should allow the committed G Watch R user to customize this device to perfectly match any occasion or outfit. (theverge.com)
The versatile looks match any occasion, making it a great companion for any event or environment. (indabaa.com)