
Now, if we try to return the color of a yellow color, since it is Text color 1 now so its value is 13. If we try to change color of Accent 4, such as It does not matter what's color of 8064A2 or 7CCA62. In the 8-bit values, first 4-bits is also fixed(1101) and the second 4-bit values will be set value as the value ofįor instance, for Accent color 4, the value is 7(0111), its whole 32bits value isġ101 0 111 00000000 11111111 11111111=-687800321

However, for an accent color, the color's 24-bit is fixed as 00000000 11111111 11111111 and the first 8-bit values will be set according to accent color set. When we try to set the color using a 24-bit values, the highest 8-bits is set to zero.
#WORD SHADING TEXT HOW TO#
Any idea how to get -687800321 "mixing" 8064A2 and 7CCA62 values?Īll color in word is 32-bit value. DrawingML - Framework Reference Material 2841 (Ecma Open Office XML Part 1 - topic 18.8.3)Ģ0. How to find shading using color number reciving from WordOpenXML? Thanks for understanding, and this statement causes that my question is still up to date: "Clearly, the theme is doing more than simply applying a particular RGB value."

Clearly, the theme is doing more than simply applying a particular In the immediate window, you'll get A26480, not the D700FFFF you get when using the theme - and, the 'purple, accent 4' box doesn't get re-selected if you go back into the shading popup. In the immediate window, you'll get 8064A2, confirming you're now seeing the RGB values stored in the xml code.Īnd just to make things really interesting, if you apply the theme's RGB colours via the 'more colors' option instead of choosing the 'purple, accent 4' box, then use: In the immediate window returns D700FFFF, not the 8064A2 you saw in the xml code.Īs you saw, the RGB values for the theme colour are given as R:128, G:100, B:162, but 8064A2 is equivalent to R:162, G:100, B:128 - the R & B values are swapped! If you apply the R:162, G:100, B:128 shading using the 'more colors' option, you'll getĪ diffierent colour. The theme value (-687800321) is not an RGB value.
