> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XHighContrastMode

> XHighContrastMode

# XHighContrastMode

Specifies the high contrast mode style of the closed caption text.

## Syntax

```cpp theme={null}
enum class XHighContrastMode  : uint32_t  
{  
    Off = 0,  
    Dark = 1,  
    Light = 2,  
    Other = 3,  
}  
```

## Constants

| Constant | Description                                              |
| -------- | -------------------------------------------------------- |
| Off      | Closed caption text does not use high contrast mode.     |
| Dark     | Closed caption text uses dark color high contrast mode.  |
| Light    | Closed caption text uses light color high contrast mode. |
| Other    | Closed caption text uses a custom high contrast mode.    |

## Remarks

You can retrieve the current high contrast mode by calling the [XHighContrastGetMode](/reference/system/xaccessibility/functions/xhighcontrastgetmode) function.
The [XHighContrastGetMode](/reference/system/xaccessibility/functions/xhighcontrastgetmode) function returns a **XHighContrastMode** enumeration.
For more information about high contrast mode, visit [High-contrast mode](https://learn.microsoft.com/windows/win32/w8cookbook/high-contrast-mode).

## Requirements

**Header:** XAccessibility.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XAccessibility](/reference/system/xaccessibility/xaccessibility_members)

[XHighContrastGetMode](/reference/system/xaccessibility/functions/xhighcontrastgetmode)

[High-contrast mode](https://learn.microsoft.com/windows/win32/w8cookbook/high-contrast-mode)


## Related topics

- [XHighContrastGetMode](/reference/system/xaccessibility/functions/xhighcontrastgetmode.md)
- [GDK accessibility overview](/build/game-principles/accessibility/accessibility-overview.md)
- [XAccessibility](/reference/system/xaccessibility/xaccessibility_members.md)
- [High Contrast Mode](/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-tak-high-contrast-mode.md)
- [XAG 102: Contrast](/build/game-principles/accessibility/xag-deep-dives/xag-102-contrast.md)
