Feature Request: Expose Theme Color RGB Values in Office.js API | Microsoft Community Hub (opens in new tab)
TitleAdd API to retrieve resolved RGB/hex values for workbook theme colorsSummaryThe Office.js API currently does not provide a method to retrieve the actual RGB or hex color values for theme colors applied in a workbook. When chart elements, shapes, or cells use theme-based fills (e.g., "Accent 1", "Accent 2"), developers can identify the theme color type but cannot programmatically resolve it to the actual color value.Problem StatementWhen automating chart formatting tasks, I need to:Read t...
Read the original article