PhpOffice\PhpSpreadsheet\Style\Style::setBackground() code example
Example: phpoffice spreadsheet background color
$spreadsheet->getActiveSheet()->getStyle('A1:A5')->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID)->getStartColor()->setARGB('ffffff');