Windows Personalization Guide

How to Change the Selection Highlight Color in Windows 10 and Windows 11

A practical guide to changing the color used for selected text, selected file names, and classic Windows highlight elements using safe Registry edits and accessibility-friendly alternatives.

🎨 Selection Color πŸͺŸ Windows 10 & 11 🧩 Registry Method β™Ώ Contrast Themes ⏱️ 5–8 min read

What Is the Selection Highlight Color in Windows?

The selection highlight color is the color Windows uses when you select text, rename files, highlight items in classic dialog boxes, or select entries in certain desktop applications. By default, Windows usually uses a blue highlight with white selected text.

This is not the same as the accent color used for the taskbar, Start menu, buttons, and some Settings elements. The selection highlight color is controlled by older Windows system color values, mainly Hilight and HilightText.

Default Example
This is selected text with the common blue highlight.
Custom Example
This is selected text with a green highlight.
Classic Example
This is selected text with a dark blue highlight.

Before You Change the Highlight Color in Windows 10 or Windows 11

Windows does not provide a normal Settings switch for changing the standard selection highlight color. The most reliable built-in method is to edit two values in the Registry:

Important: Registry editing is safe when you change only the intended values, but mistakes can affect Windows behavior. Create a restore point or export the Registry key before making changes.

How to Back Up the Color Registry Key

  1. Press Win + R, type regedit, and press Enter.
  2. Go to HKEY_CURRENT_USER\Control Panel\Colors.
  3. Right-click the Colors key and choose Export.
  4. Save the backup file somewhere easy to find, for example on the Desktop.

How to Choose RGB Values for the Windows Highlight Color

The Windows Registry values for Hilight and HilightText use the format Red Green Blue. Each number must be between 0 and 255, separated by spaces.

0 120 215 = Windows-style blue 0 0 128 = classic dark blue 40 135 70 = green 128 0 128 = purple 255 255 255 = white text 0 0 0 = black text

For readability, choose a strong contrast between the highlight background and the selected text color. A dark highlight usually needs white selected text, while a very light highlight usually needs black selected text.

Default blue
0 120 215
Classic dark blue
0 0 128
Readable green
40 135 70
Purple
128 0 128

Method 1: Change Selection Highlight Color with Registry Editor

This method works in both Windows 10 and Windows 11. It changes the current user profile only, so other Windows accounts on the same PC keep their own colors.

  1. Press Win + R, type regedit, and click OK.
  2. Confirm the User Account Control prompt if it appears.
  3. Navigate to this Registry key:
HKEY_CURRENT_USER\Control Panel\Colors
  1. In the right pane, find the string value named Hilight.
  2. Double-click Hilight and enter the RGB value for the new selected background color. Example: 40 135 70.
  3. Find HilightText.
  4. Double-click HilightText and enter the RGB value for selected text. Example: 255 255 255.
  5. Close Registry Editor.
  6. Sign out and sign back in, or restart Windows, to apply the change fully.
Recommended combination: use 40 135 70 for Hilight and 255 255 255 for HilightText. This gives a clear green selection with white selected text.

Example: Set a Dark Blue Highlight Color

To use a classic dark blue selection color, set these values:

Hilight 0 0 128 HilightText 255 255 255

Method 2: Change the Highlight Color with a .REG File

If you prefer not to edit the Registry manually, create a small .reg file. This is useful when you want to apply the same selection color again later.

  1. Open Notepad.
  2. Paste the following code:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Colors] "Hilight"="40 135 70" "HilightText"="255 255 255"
  1. Click File β†’ Save As.
  2. Set Save as type to All Files.
  3. Name the file change-highlight-color.reg.
  4. Double-click the file and confirm the Registry prompt.
  5. Restart the computer or sign out and sign back in.
Do not download random Registry files from unknown websites. A .reg file can modify many Windows settings. Use only code you understand or create the file yourself.

Method 3: Change Selection Colors with Windows Contrast Themes

For accessibility, Windows also provides Contrast Themes. These themes can make selected items easier to see and are often better than a small color tweak if the default blue selection is hard to distinguish.

Windows 11

  1. Open Settings.
  2. Go to Accessibility β†’ Contrast themes.
  3. Select a contrast theme and click Edit if you want to customize colors.
  4. Save the theme and apply it.

Windows 10

  1. Open Settings.
  2. Go to Ease of Access β†’ High contrast.
  3. Choose a high contrast theme.
  4. Adjust the available colors and apply the theme.

Contrast themes change more than just selection colors. They affect windows, text, links, buttons, backgrounds, and many app elements. Use this method if visibility is the priority.

Where the Custom Highlight Color Works in Windows

The Registry method changes classic Windows system colors. However, modern Windows apps do not always use these values. Some apps draw their own interface and ignore the system highlight color.

Area or App Type Expected Result
Classic Win32 dialogs Usually follows the custom highlight color.
File rename field on Desktop or in File Explorer Often reflects the changed selection color after restart.
Registry Editor and Run dialog Usually affected by Hilight and HilightText.
Modern Settings app May continue using Windows accent and theme colors.
Browsers and web pages May use browser, website, or CSS-defined selection colors.
Office, Adobe, code editors, and other custom apps Depends on the application theme engine.
If the color changes in some places but not everywhere, that is normal. Windows 10 and Windows 11 combine legacy system colors, accent colors, app themes, and custom UI rendering.

How to Restore the Default Windows Highlight Color

To return to the standard Windows-style blue highlight, set these values in HKEY_CURRENT_USER\Control Panel\Colors:

Hilight 0 120 215 HilightText 255 255 255

You can also restore the backup you exported earlier:

  1. Double-click the exported .reg backup file.
  2. Confirm the prompt.
  3. Restart Windows or sign out and sign back in.

Highlight Color Did Not Change: Troubleshooting Tips

1. Restart or Sign Out

Some Windows color values are loaded when the user session starts. If nothing changed immediately, restart the computer or sign out and sign back in.

2. Check the Value Names

The correct value names are Hilight and HilightText. Notice the spelling: Hilight does not contain the second β€œgh” used in the normal English word β€œhighlight”.

3. Use Spaces, Not Commas

Enter RGB values as 40 135 70, not 40,135,70 or #288746. Windows expects three decimal numbers separated by spaces.

4. Try a Classic App for Testing

Open Run, Registry Editor, or a classic dialog box and select text there. Modern apps may not reflect the change.

5. Disable or Change Custom Themes

Third-party themes, shell customization tools, or contrast themes can override normal color behavior. Temporarily switch to a standard Windows theme and test again.

FAQ: Changing the Highlight Color in Windows

Can I change the highlight color from Windows Settings?

Not directly. Windows Settings lets you change accent colors, dark mode, light mode, and contrast themes, but it does not provide a simple switch for the classic selection highlight color.

Is this the same as changing the accent color?

No. The accent color affects items such as Start, taskbar, quick settings, buttons, and some interface highlights. The selection highlight color affects selected text and selected items in classic Windows interface elements.

Will this change selected text color in every browser?

No. Websites can define their own selection colors with CSS, and browsers may use their own rendering. The Registry method is mainly for Windows system colors and classic desktop controls.

Can I use a hex color code?

Not directly in the Registry value. Convert the hex color to RGB first. For example, #288746 becomes 40 135 70.

Is it safe to change Hilight and HilightText?

Yes, if you change only these two string values and keep a backup. The change is reversible and affects only the current user profile.

Final Thoughts: The Best Way to Change Highlight Color in Windows

The most direct way to change the selection highlight color in Windows 10 and Windows 11 is to edit the Hilight and HilightText values under HKEY_CURRENT_USER\Control Panel\Colors. Use clear RGB values, keep strong contrast between the background and selected text, and restart or sign out after applying the change.

Recommended Setup

For a visible and comfortable custom highlight, try 40 135 70 for Hilight and 255 255 255 for HilightText. If you need broader accessibility improvements, use Windows Contrast Themes instead of relying only on the Registry method.