<color>
(Run Content Color)
This element specifies the color which shall be used to display the contents of this run in the document.
This color may be explicitly specified, or set to allow the consumer to automatically choose an appropriate color based on the background color behind the run's content.
If this element is not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this element is never applied in the style hierarchy, then the characters are set to allow the consumer to automatically choose an appropriate color based on the background color behind the run's content.
<w:rPr> <w:color w:themeColor=”accent3” /> </w:rPr>
The @color
attribute specifies that the run shall use the accent3
theme color. ]
Parent Elements |
---|
|
Attributes |
Description |
---|---|
|
Specifies a theme color which should be applied to the current run. The specified theme color is a reference to one of the predefined theme colors, located in the document's Theme part,which allows for color information to be set centrally in the document. If the <w:rPr> <w:color w:themeColor=”accent3” /> </w:rPr> The The possible values for this attribute are defined by the ST_ThemeColor simple type (§2.18.104). |
|
Specifies the shade value applied to the supplied theme color (if any) for this run’s contents. If the The Te resulting Given a input red, green, or blue color value C (from 0-255), an output color value of C' (from 0-255), and a shade value S (from 0-100), the shade is applied as follows: The hex value for the green component is <w:color w:val="7B4B23" w:themeColor="accent6" w:themeShade="80" /> The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
|
Specifies the tint value applied to the supplied theme color (if any) for this run’s contents. If the The The resulting Given a input red, green, or blue color value C (from 0-255), an output color value of C' (from 0-255), and a tint value T (from 0-100), the tint is applied as follows: The hex value for the green component is <w:color w:val="D99694" w:themeColor="accent1" w:themeTint="99" /> The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
|
Specifies the color for this run. This color may either be presented as a hex value (in RRGGBB format), or If the run specifies the use of a theme color via the <w:rPr> <w:color ... w:val="auto" /> </w:rPr> This color therefore may be automatically be modified by a consumer as appropriate, for example, in order to ensure that the run contents can be distinguished against the page's background color. ] The possible values for this attribute are defined by the ST_HexColor simple type (§2.18.43). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Color">
<attribute name="val" type="ST_HexColor" use="required"/>
<attribute name="themeColor" type="ST_ThemeColor" use="optional"/>
<attribute name="themeTint" type="ST_UcharHexNumber" use="optional"/>
<attribute name="themeShade" type="ST_UcharHexNumber" use="optional"/>
</complexType>