Open in the explorer

Change color used to highlight search matches

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Outlook 2016 › Outlook Options › Preferences › Search Options
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
outlk16.admx
Internal name
outlk16/L_HitHighlightingcolor

Explanation

By default, search matches are highlighted in yellow. This setting allows you to change the color used for highlighting matches in search results.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\search
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: outlk16/L_HitHighlightingcolor
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Background Color
# Possible options:
#   Black = 000000; Silver = 12632256; Gray = 8421504; White = 16777215; Aqua = 65535
#   Fuchsia = 16711808; Lime = 8453888; Yellow = 16776960; Olive = 8421376; Purple = 8388736
#   Green = 32768; Red = 16711680; Maroon = 8388608; Navy = 128; Teal = 32896; Blue = 255
Set-ItemProperty -Path $k -Name 'hithighlightingbackgroundcolor' -Value 16776960 -Type DWord

Disable

# Disable: outlk16/L_HitHighlightingcolor
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": outlk16/L_HitHighlightingcolor
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\search'
Remove-ItemProperty -Path $k -Name 'hithighlightingbackgroundcolor' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Background Color:L_BackgroundColorcolonDrop-down listenumhithighlightingbackgroundcolorREG_DWORD
Default choice (UI): #7
LabelValue
BlackREG_DWORD = 000000
SilverREG_DWORD = 12632256
GrayREG_DWORD = 8421504
WhiteREG_DWORD = 16777215
AquaREG_DWORD = 65535
FuchsiaREG_DWORD = 16711808
LimeREG_DWORD = 8453888
YellowREG_DWORD = 16776960
OliveREG_DWORD = 8421376
PurpleREG_DWORD = 8388736
GreenREG_DWORD = 32768
RedREG_DWORD = 16711680
MaroonREG_DWORD = 8388608
NavyREG_DWORD = 128
TealREG_DWORD = 32896
BlueREG_DWORD = 255

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.