You can use EPPlus Library, which is free for personal use.
https://www.epplussoftware.com/en
You may read about the licensing here more: https://www.epplussoftware.com/en/LicenseOverview/, go to the last section in the page that speaks about non commercial license.
Once you add EPPlus to your project, you can read the cell background color as follows.
var bgColor = sheet.Cells[rowId, colId].Style.Fill.BackgroundColor;
//To set the back ground color you may use
sheet.Cells[rowId, colId].Style.Fill.SetCellsColor(Color.Blue);
Hope this helps