My question is very simular to Convert RGBA color to RGB only I have a Hex string not byte colour values.
I am working with EPPlus and I wish to convery cell background colours to HTML colours.
The cell backgound colours come from this property ColorType.Rgb.
Note: The property says Rgb but as the doc says it is actually Argb.
During testing I have one Red cell which has the Argb hex of #FFFF0000 but as I understand it, in HTML the Alpha is not supported and the Rgb hex for red is #FF0000.
I need to first convert the Hex strings to byte values, perform the calculation from the previous answer, convert the Rgb bytes into a hex string.
Thanks