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

# 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](https://docs.xbox.com/reference/system/xaccessibility/functions/xhighcontrastgetmode.md) function.
The [XHighContrastGetMode](https://docs.xbox.com/reference/system/xaccessibility/functions/xhighcontrastgetmode.md) 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](https://docs.xbox.com/reference/system/xaccessibility/xaccessibility_members.md)

[XHighContrastGetMode](https://docs.xbox.com/reference/system/xaccessibility/functions/xhighcontrastgetmode.md)

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


## Related topics

- [XHighContrastGetMode](https://docs.xbox.com/reference/system/xaccessibility/functions/xhighcontrastgetmode.md)
- [Accessibility overview](https://docs.xbox.com/build/game-principles/accessibility/accessibility-overview.md)
- [XAccessibility (API contents)](https://docs.xbox.com/reference/system/xaccessibility/xaccessibility_members.md)
- [High contrast mode for Touch Adaptation Layouts](https://docs.xbox.com/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-tak-high-contrast-mode.md)
- [Color Palette](https://docs.xbox.com/reference/system/touchadaptationkit/layout/game-streaming-touch-color-palette.md)
