I am exporting excel for bulk upload in PHP laravel. I am applying color to cell applying the following method:-
public function styles(Worksheet $sheet)
{
return [
'A1' => [
'fill' => [
'fillType' => Fill::FILL_SOLID,
'startColor' => [
'rgb' => '#fa7b3e'
]
]
]
];
}
when I open exported excel in google sheet it worked fine but when opened in Microsoft office it shows only black color where this color applied.
when I apply 'argb' => 'FFFF0000'
instead of 'rgb' => '#fa7b3e'
it is working fine in Microsoft office.
please, give me some link or solution to this problem. I can't able to find argb color code like this FFFF0000
online. I found this rgba code rgba(250, 123, 62, 1)