sodcalculator

10 Tech How-To

Change Desktop Icon Font Color in Windows 11

Guide 10-32061 · Updated · Step by step

This guide shows you how to change the color of the text labels under desktop icons in Windows 11. Normally, Windows uses a system-wide accent or a forced dark/light color, but you can override it with a registry tweak to make icons readable on any wallpaper.

What You’ll Need

  • A Windows 11 PC with administrator access
  • Registry Editor (built-in, no download needed)
  • A way to restart File Explorer (or just sign out and back in)

Step-by-Step

  1. Open Registry Editor. Press Win + R, type regedit, and press Enter. Click “Yes” if User Account Control prompts.
  2. Navigate to the desktop key. Copy and paste this into the address bar at the top of Registry Editor:
    HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
    Press Enter.
  3. Find the IconFont value. In the right pane, look for IconFont. Double-click it. If it doesn’t exist, right-click a blank area → New → String Value, name it IconFont, then double-click it.
  4. Change the font color. The default value is usually something like Segoe UI,9 or MS Shell Dlg 2,9. To change the color, you need to add a negative color number at the end, separated by a comma. For example:
    Segoe UI,9,-16777216 makes the text black, and Segoe UI,9,-1 makes it white.
    Type your desired value and click OK.
  5. Restart File Explorer. Open Task Manager (Ctrl+Shift+Esc), find “Windows Explorer” in the Processes tab, right-click it, and choose “Restart.” Your desktop icons will disappear and reappear with the new color.
  6. If the color doesn’t change, sign out and sign back in, or restart your PC.

Common Mistakes

  • Using a positive number for color. Windows expects a signed 32-bit integer. Positive numbers are interpreted differently and often produce black or invisible text. Always use negative values for standard colors.
  • Forgetting the comma before the number. The format is FontName,FontSize,ColorCode. If you omit the comma, the color is ignored.
  • Editing the wrong registry key. Make sure you are in HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics, not the system-wide HKEY_LOCAL_MACHINE version.
  • Not restarting Explorer. The change only applies after Explorer restarts or you sign out.
  • Typing the color code with a minus sign that’s too large. Values below -16777216 or above -1 may be rejected or cause odd results.

Tips

  • Find your color code. Use a color picker or a site that shows decimal RGB values. The formula is: ColorCode = - (Red + Green*256 + Blue*65536) - 1. For example, pure red (255,0,0) = -(255 + 0 + 0) – 1 = -256. Pure green (0,255,0) = -(0 + 65280 + 0) – 1 = -65281. Pure blue (0,0,255) = -(0 + 0 + 16711680) – 1 = -16711681.
  • Use white for dark wallpapers, black for light ones. Gray (e.g., -8421505) can be a good middle ground.
  • Backup your registry. Right-click the WindowMetrics key and choose Export to save a .reg file before making changes. You can double-click that file to restore if something goes wrong.
  • You can also change the font size and family in the same IconFont value. For example, Segoe UI,12,-1 makes white text at size 12.
  • If you want to revert to the default, set the value to Segoe UI,9 (without a color number) or restore from your backup.

Troubleshooting

The color didn’t change after restarting Explorer. Sign out and sign back in, or restart the PC. If it still doesn’t work, double-check that you edited the correct key and that the value is formatted exactly as Font,Size,ColorCode.

Text is now invisible. You likely used a color that blends with your wallpaper, or you used a positive number. Change the value to a known negative code like -1 (white) or -16777216 (black) and restart Explorer.

Registry Editor says “cannot edit” or access denied. Make sure you are logged in as an administrator. If you are, right-click Registry Editor and choose “Run as administrator.”

The font size changed but not the color. That means the color part is missing or malformed. Ensure there is a comma between the size and the color code, and that the color code is a negative number.

After a Windows update, the color reverted. Updates can reset some registry values. Reapply the tweak and consider creating a .reg file to reapply it easily.

Frequently Asked Questions

Q: Can I change the icon text color without editing the registry?
A: No, Windows 11 does not offer a built-in setting for icon text color. The registry method is the standard workaround.

Q: Will this affect other text in Windows?
A: No, the IconFont value specifically affects desktop icon labels only, not menus, title bars, or other text.

Q: What is the color code for a custom color like orange?
A: Use the formula above. For orange (255,165,0), it’s -(255 + 165*256 + 0) – 1 = -(255 + 42240) – 1 = -42496.

Q: Can I set different colors for different icons?
A: No, the registry value applies to all desktop icons uniformly. There is no per-icon color setting.

Q: Is this safe to do?
A: Yes, if you follow the steps and back up the registry key first. The change is reversible by deleting the IconFont value or restoring the backup.

Q: Why does my text have a shadow or outline?
A: That’s a separate Windows setting for desktop icon text shadow. You can toggle it in System > About > Advanced system settings > Performance Settings > “Use drop shadows for icon labels on the desktop.”

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →