Free Support Forum -

Hex Color code not support


I am Tarun and using Aspose api for generate excel sheet. I am facing problem when we passing RGB(255,255,102) in Color class (new Color(255, 255, 102)). It is showing Black color. It is working fine for new Color(255, 255, 0). Help me. My email is


Thanks for your inquiry.

Yes, it would work fine for the default colors like “new Color(255, 255, 0)” (that are present on the MS Excel 2003 standard color palette). But if you are using custom colors, you need to add them to the color palette first before using them. So, this is not the issue with Aspose.Cells for Java.

See the topic for your reference:

Thank you.

Thanks, I’ll do the same as you suggest.