Java tip: SystemColors for Windows XP user interface themes

Technologies: Java 5+

Each Windows XP theme sets the desktop image, screen saver, and color scheme for window frames, buttons, scrollbars, and other user interface components. For Java applications, changing the theme also sets colors in Java's java.awt.SystemColor objects, which applications may use to customize user interfaces to match the Windows theme.

This article discusses SystemColor problems on Windows XP, and provides color swatches, RGB/HSV values, and downloadable color lists for SystemColors for each of the standard Windows XP themes.

This article is part of a series on How to use SystemColors to access OS user interface theme colors that catalogs Java's SystemColors for user interface themes in major OSes. The color catalogs provide a resource for comparing theme colors and creating custom Java components that match the themes.

Accessing Windows XP theme colors from Java

A Windows XP theme defines the color scheme and style for window frames, title bars, buttons, tabs, and so on. Windows XP's bright blue window title bars, red "X" window close button, rounded window corners, and shaded tabs, buttons, and scrollbars are all part of its theme.

Java's java.awt.SystemColor class provides access to well-defined theme colors, such as the foreground and background colors for buttons, text fields, and menus. Each theme color has a static SystemColor object. For instance, SystemColor.textHighlight is the background color for selected text in a text field.

A list of SystemColor objects and their use is discussed further in the lead series article. The following article discusses Windows XP-specific issues, summarizes user theme choices, and provides color swatches and RGB values for theme SystemColors.

Selecting Windows XP themes

Briefly, Windows XP themes are selected using the Themes tab on the Display Properties control panel:

Windows XP Themes tab on the Display Properties control panel
Figure 1. Theme selections in the
Windows XP Theme tab of the Display Properties control panel.

Each theme combines settings for the desktop image, the window and button style, the font size, and the overall color scheme. The desktop image can be set using the Desktop tab, while the other theme settings may be changed from the Appearance tab of the same control panel.

Window and button styles

The Appearance tab includes a menu to select the window and button style, and a second button to select among several preset color schemes for that style:

Windows XP Appearance tab on the Display Properties control panel
Figure 2. Theme styles and colors in the
Windows XP Appearance tab of the Display Properties control panel.

Windows XP includes two window and button styles:

  • Windows XP style draws windows with rounded upper corners, a shaded title bar, and brightly colored window buttons. Combo boxes, scroll bars, buttons, and other components have a lightly shaded, soft, rounded appearance.
  • Windows Classic style draws windows with sharp corners, a simpler left-to-right gradient title bar, and simpler window buttons. Components have a flat, beveled appearance.

The Windows XP style is new in Windows XP, and is the default. The Windows Classic style mimics the look of Windows 95 and Windows 98.

Each style has its own set of color schemes. The Windows XP style color schemes include blue (default), olive green, and silver. The Windows Classic style color schemes include the classic gray scheme, multiple colored variants from brick to teal, and several high contrast color schemes for the visually impaired.

Window and button colors

Clicking on the Advanced button on the Appearance tab shows the Advanced Appearance control panel with more detailed settings for the window frame colors, background colors, text colors, and so forth:

Windows XP Appearance tab on the Display Properties control panel
Figure 3. Theme controls in the
Windows XP Advanced Appearance control panel.

Dealing with Windows XP SystemColor problems

Java's SystemColor class is a flawed approach to accessing OS theme settings. While colors are defined for button backgrounds and text, none are defined for tabs, checkboxes, radio buttons, progress bars, and more. Though a highlight color is defined for selected text, none are defined for selected menu items, toggle buttons, radio buttons, or checkboxes. Beyond colors, Java has no access to OS theme fonts, button styles, window title bar buttons, and so forth. So, while there are specific problems on Windows (and every OS), the primary problem is that Java's theme access is flawed.

Some specific problems on Windows XP include:

  • SystemColor.activeCaption and SystemColor.inactiveCaption provide the window title bar background color for front and back windows.
    • Most XP themes use gradients for window title bars. The SystemColors include the starting color for the gradients, but there is no SystemColor for the ending color.
    • While the user can set gradient colors in the Advanced Appearance control panel, the XP style themes ignore them. Only the Classic themes use the user's title bar color choices. Nevertheless, the user's color choices set Java's SystemColors, even while they're being ignored by Windows XP.
  • SystemColor.activeCaptionBorder and SystemColor.inactiveCaptionBorder hold the border color of front and back windows.
    • When using the XP style themes, the theme draws the window borders using the same colors used in the title bar. But the SystemColors don't reflect this and remain gray.
    • While the user can set the border colors in the Advanced Appearance control panel and for the corresponding Java SystemColors, the XP style themes ignore the colosr. Only the Classic themes use the border colors.
  • SystemColor.desktop gives the desktop color.
    • Most users use a favorite image as their desktop and never touch the desktop color setting. SystemColor.desktop is unlikely to have a color anything like the user's desktop image.
  • SystemColor.control indicates the background color for buttons, tabs, etc.
    • While the user can set the control color in the Advanced Appearance control panel and for the corresponding Java SystemColor, the XP style themes always draw their own beige shaded buttons, scrollbars, etc. On these themes, the control color is only used for window backgrounds. The Classic themes, however, use the control color for their buttons.
  • SystemColor.menu gives the background color for menus.
    • While the user can set the menu color in the Advanced Appearance control panel and for the corresponding Java SystemColor, the color is ignored when using the XP style themes. Menus on those themes always use the window background color. Only the Classic themes pay attention to the menu color.

Because of these problems, the title bar, menu, desktop, and component colors reported by the SystemColor class may or may not match those actually in use by Windows XP. Since Java applications cannot tell what type of theme is in use, they cannot determine when the SystemColors do or do not mean anything.

None of these have workarounds. While the SystemColor class is intended to indicate the OS's theme color scheme, it doesn't work very well.

Similar problems are found for SystemColors on Windows Vista and Windows 7.

Color swatches and values

Selecting a new theme or changing any of the theme's colors immediately updates one or more Java SystemColors.

XP themes

The XP themes use brightly colored windows with rounded corners and rounded shaded components. The XP themes were often derided as having a child's toy look and were discontinued after Windows XP.

XP Blue theme (default)

The XP Blue theme is the default theme for Windows XP. The theme uses black text on a light beige background with bright blue highlights.

Windows XP blue theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #0054e3 0 84 227 217 100 89
activeCaptionBorder #d4d0c8 212 208 200 29 3 81
activeCaptionText #ffffff 255 255 255 0 0 100
control #ece9d8 236 233 216 49 7 91
controlDkShadow #716f64 113 111 100 49 9 43
controlHighlight #f1efe2 241 239 226 50 5 93
controlLtHighlight #ffffff 255 255 255 0 0 100
controlShadow #aca899 172 168 153 43 8 65
controlText #000000 0 0 0 0 0 0
desktop #004e98 0 78 152 209 100 59
inactiveCaption #7a96df 122 150 223 223 45 87
inactiveCaptionBorder #d4d0c8 212 208 200 29 3 81
inactiveCaptionText #d8e4f8 216 228 248 217 12 97
info #ffffe1 255 255 225 59 11 100
infoText #000000 0 0 0 0 0 0
menu #ffffff 255 255 255 0 0 100
menuText #000000 0 0 0 0 0 0
scrollbar #d4d0c8 212 208 200 29 3 81
text #ffffff 255 255 255 0 0 100
textHighlight #316ac5 49 106 197 216 75 77
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #aca899 172 168 153 43 8 65
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

XP Olive Green theme

The XP Olive Green theme replaces the bright blues of the XP Blue theme with olive greens, but uses the same black text on a beige background.

Windows XP olive green theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #8ba169 139 161 105 83 34 63
activeCaptionBorder #d4d0c8 212 208 200 29 3 81
activeCaptionText #ffffff 255 255 255 0 0 100
control #ece9d8 236 233 216 49 7 91
controlDkShadow #716f64 113 111 100 49 9 43
controlHighlight #f1efe2 241 239 226 50 5 93
controlLtHighlight #ffffff 255 255 255 0 0 100
controlShadow #aca899 172 168 153 43 8 65
controlText #000000 0 0 0 0 0 0
desktop #9dacbd 157 172 189 211 16 74
inactiveCaption #d4d6ba 212 214 186 64 13 83
inactiveCaptionBorder #d4d0c8 212 208 200 29 3 81
inactiveCaptionText #ffffff 255 255 255 0 0 100
info #ffffe1 255 255 225 59 11 100
infoText #000000 0 0 0 0 0 0
menu #ffffff 255 255 255 0 0 100
menuText #000000 0 0 0 0 0 0
scrollbar #d4d0c8 212 208 200 29 3 81
text #ffffff 255 255 255 0 0 100
textHighlight #93a070 147 160 112 76 30 62
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #aca899 172 168 153 43 8 65
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

XP Silver theme

The XP Silver theme replaces the XP Blue theme's bright blues with a shiny gray and uses a blue-gray background with black text.

Windows XP silver theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #c0c0c0 192 192 192 0 0 75
activeCaptionBorder #d4d0c8 212 208 200 29 3 81
activeCaptionText #0e1010 14 16 16 180 12 6
control #e0dfe3 224 223 227 254 1 89
controlDkShadow #716f64 113 111 100 49 9 43
controlHighlight #f1efe2 241 239 226 50 5 93
controlLtHighlight #ffffff 255 255 255 0 0 100
controlShadow #9d9da1 157 157 161 240 2 63
controlText #000000 0 0 0 0 0 0
desktop #585768 88 87 104 243 16 40
inactiveCaption #ffffff 255 255 255 0 0 100
inactiveCaptionBorder #d4d0c8 212 208 200 29 3 81
inactiveCaptionText #a2a1a1 162 161 161 0 0 63
info #ffffe1 255 255 225 59 11 100
infoText #000000 0 0 0 0 0 0
menu #ffffff 255 255 255 0 0 100
menuText #000000 0 0 0 0 0 0
scrollbar #d4d0c8 212 208 200 29 3 81
text #ffffff 255 255 255 0 0 100
textHighlight #b2b4bf 178 180 191 230 6 74
textHighlightText #000000 0 0 0 0 0 0
textInactiveText #aca899 172 168 153 43 8 65
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Classic themes

The two Classic themes, named Classic and Standard, mimic the look of Windows 95 and 98 with squared window corners, a gradient window title bar, and flat beveled buttons, scrollbars, and tabs.

Classic theme

The Classic theme uses black text on a blue-gray background with dark blue highlights. The window title bar's lighter blue secondary color is not represented in Java's SystemColor set.

The Classic theme is available in Windows Vista as the Windows Classic theme, but is not included in Windows 7.

Windows XP classic theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #000080 0 0 128 240 100 50
activeCaptionBorder #c0c0c0 192 192 192 0 0 75
activeCaptionText #ffffff 255 255 255 0 0 100
control #c0c0c0 192 192 192 0 0 75
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #c0c0c0 192 192 192 0 0 75
controlLtHighlight #ffffff 255 255 255 0 0 100
controlShadow #808080 128 128 128 0 0 50
controlText #000000 0 0 0 0 0 0
desktop #3a6ea5 58 110 165 210 64 64
inactiveCaption #808080 128 128 128 0 0 50
inactiveCaptionBorder #c0c0c0 192 192 192 0 0 75
inactiveCaptionText #c0c0c0 192 192 192 0 0 75
info #ffffe1 255 255 225 59 11 100
infoText #000000 0 0 0 0 0 0
menu #c0c0c0 192 192 192 0 0 75
menuText #000000 0 0 0 0 0 0
scrollbar #c0c0c0 192 192 192 0 0 75
text #ffffff 255 255 255 0 0 100
textHighlight #000080 0 0 128 240 100 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #808080 128 128 128 0 0 50
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Standard theme

The Standard theme brightens the Classic theme's colors to lighter blues and a beige background. The window title bar's light blue secondary color is not represented in Java's SystemColor set.

The Standard theme is available in Windows Vista as the Windows Standard theme, and in Windows 7 as the Windows Classic theme.

Windows XP classic theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #0a246a 10 36 106 223 90 41
activeCaptionBorder #d4d0c8 212 208 200 29 3 81
activeCaptionText #ffffff 255 255 255 0 0 100
control #d4d0c8 212 208 200 29 3 81
controlDkShadow #404040 64 64 64 0 0 25
controlHighlight #d4d0c8 212 208 200 29 3 81
controlLtHighlight #ffffff 255 255 255 0 0 100
controlShadow #808080 128 128 128 0 0 50
controlText #000000 0 0 0 0 0 0
desktop #3a6ea5 58 110 165 210 64 64
inactiveCaption #808080 128 128 128 0 0 50
inactiveCaptionBorder #d4d0c8 212 208 200 29 3 81
inactiveCaptionText #d4d0c8 212 208 200 29 3 81
info #ffffe1 255 255 225 59 11 100
infoText #000000 0 0 0 0 0 0
menu #d4d0c8 212 208 200 29 3 81
menuText #000000 0 0 0 0 0 0
scrollbar #d4d0c8 212 208 200 29 3 81
text #ffffff 255 255 255 0 0 100
textHighlight #0a246a 10 36 106 223 90 41
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #808080 128 128 128 0 0 50
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Colored classic themes

The Colored classic themes are Classic theme variants with different background and highlight colors. They often have garish color schemes with poor contrast and are good examples of "Just because you can use lots of colors, doesn't mean you should." All of the colored classic themes were discontinued after Windows XP.

Brick theme

The Brick theme uses black text on a warm gray background with sand and brick red highlights. The window title bar's orange secondary color is not represented in Java's SystemColor set.

Windows XP Brick theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #800000 128 0 0 0 0 0
activeCaptionBorder #c2bfa5 194 191 165 53 13 74
activeCaptionText #e1e0d2 225 224 210 55 6 87
control #c2bfa5 194 191 165 53 13 74
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #c2bfa5 194 191 165 53 13 74
controlLtHighlight #e1e0d2 225 224 210 55 6 87
controlShadow #8d8961 141 137 97 53 29 53
controlText #000000 0 0 0 0 0 0
desktop #420000 66 0 0 0 0 0
inactiveCaption #8d8961 141 137 97 53 29 53
inactiveCaptionBorder #c2bfa5 194 191 165 53 13 74
inactiveCaptionText #e1e0d2 225 224 210 55 6 87
info #e1e0d2 225 224 210 55 6 87
infoText #800000 128 0 0 0 0 0
menu #c2bfa5 194 191 165 53 13 74
menuText #000000 0 0 0 0 0 0
scrollbar #e1e0d2 225 224 210 55 6 87
text #ffffff 255 255 255 0 0 100
textHighlight #8d8961 141 137 97 53 29 53
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #8d8961 141 137 97 53 29 53
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Desert theme

The Desert theme uses a US Southwestern decor color scheme with black text on a beige background with turquoise highlights. The window title bar's light turquoise secondary color is not represented in Java's SystemColor set.

Windows XP Desert theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #008080 0 128 128 180 100 50
activeCaptionBorder #d5ccbb 213 204 187 28 8 80
activeCaptionText #ffffff 255 255 255 0 0 100
control #d5ccbb 213 204 187 28 8 80
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #d5ccbb 213 204 187 28 8 80
controlLtHighlight #eae6dd 234 230 221 33 3 90
controlShadow #a28d68 162 141 104 25 26 55
controlText #000000 0 0 0 0 0 0
desktop #a28d68 162 141 104 25 26 55
inactiveCaption #a28d68 162 141 104 25 26 55
inactiveCaptionBorder #d5ccbb 213 204 187 28 8 80
inactiveCaptionText #ffffff 255 255 255 0 0 100
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #d5ccbb 213 204 187 28 8 80
menuText #000000 0 0 0 0 0 0
scrollbar #eae6dd 234 230 221 33 3 90
text #ffffff 255 255 255 0 0 100
textHighlight #008080 0 128 128 180 100 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #a28d68 162 141 104 25 26 55
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Eggplant theme

The Eggplant theme uses black text on a green-gray background with green highlights. The window title bar's eggplant purple secondary color is not represented in Java's SystemColor set.

Windows XP Eggplant theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #588078 88 128 120 168 31 50
activeCaptionBorder #90b0a8 144 176 168 165 18 69
activeCaptionText #ffffff 255 255 255 0 0 100
control #90b0a8 144 176 168 165 18 69
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #90b0a8 144 176 168 165 18 69
controlLtHighlight #c8d8d8 200 216 216 180 7 84
controlShadow #588078 88 128 120 168 31 50
controlText #000000 0 0 0 0 0 0
desktop #400040 64 0 64 300 100 25
inactiveCaption #90b0a8 144 176 168 165 18 69
inactiveCaptionBorder #90b0a8 144 176 168 165 18 69
inactiveCaptionText #588078 88 128 120 168 31 50
info #ffffff 255 255 255 0 0 100
infoText #800080 128 0 128 300 100 50
menu #90b0a8 144 176 168 165 18 69
menuText #000000 0 0 0 0 0 0
scrollbar #90b0a8 144 176 168 165 18 69
text #ffffff 255 255 255 0 0 100
textHighlight #588078 88 128 120 168 31 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #588078 88 128 120 168 31 50
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Lilac theme

The Lilac theme uses black text on a light purple background with dark purple highlights. The window title bar's pink secondary color is not represented in Java's SystemColor set.

Windows XP Lilac theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #5a4eb1 90 78 177 247 55 69
activeCaptionBorder #aea8d9 174 168 217 247 22 85
activeCaptionText #ffffff 255 255 255 0 0 100
control #aea8d9 174 168 217 247 22 85
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #aea8d9 174 168 217 247 22 85
controlLtHighlight #d8d5ec 216 213 236 247 9 92
controlShadow #5a4eb1 90 78 177 247 55 69
controlText #000000 0 0 0 0 0 0
desktop #000000 0 0 0 0 0 0
inactiveCaption #808080 128 128 128 0 0 50
inactiveCaptionBorder #aea8d9 174 168 217 247 22 85
inactiveCaptionText #ffffff 255 255 255 0 0 100
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #aea8d9 174 168 217 247 22 85
menuText #000000 0 0 0 0 0 0
scrollbar #aea8d9 174 168 217 247 22 85
text #ffffff 255 255 255 0 0 100
textHighlight #5a4eb1 90 78 177 247 55 69
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #5a4eb1 90 78 177 247 55 69
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Maple theme

The Maple theme uses black text on an orange-beige background with orange highlights. The window title bar's orange secondary color is not represented in Java's SystemColor set.

Windows XP Lilac theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #800000 128 0 0 0 0 0
activeCaptionBorder #e6d8ae 230 216 174 39 19 84
activeCaptionText #ffffff 255 255 255 0 0 100
control #e6d8ae 230 216 174 39 19 84
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #e6d8ae 230 216 174 39 19 84
controlLtHighlight #f2ecd7 242 236 215 42 8 92
controlShadow #c6a646 198 166 70 39 57 65
controlText #000000 0 0 0 0 0 0
desktop #000000 0 0 0 0 0 0
inactiveCaption #c6a646 198 166 70 39 57 65
inactiveCaptionBorder #e6d8ae 230 216 174 39 19 84
inactiveCaptionText #f2ecd7 242 236 215 42 8 92
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #e6d8ae 230 216 174 39 19 84
menuText #000000 0 0 0 0 0 0
scrollbar #f2ecd7 242 236 215 42 8 92
text #ffffff 255 255 255 0 0 100
textHighlight #c6a646 198 166 70 39 57 65
textHighlightText #000000 0 0 0 0 0 0
textInactiveText #c6a646 198 166 70 39 57 65
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Marine theme

The Marine theme uses black text on a sea foam blue-green background with blue highlights. The window title bar's light blue secondary color is not represented in Java's SystemColor set.

Windows XP Marine theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #000080 0 0 128 240 100 50
activeCaptionBorder #88c0b8 136 192 184 171 29 75
activeCaptionText #ffffff 255 255 255 0 0 100
control #88c0b8 136 192 184 171 29 75
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #88c0b8 136 192 184 171 29 75
controlLtHighlight #c8e0d8 200 224 216 160 10 87
controlShadow #489088 72 144 136 173 50 56
controlText #000000 0 0 0 0 0 0
desktop #2c4e47 44 78 71 167 43 30
inactiveCaption #489088 72 144 136 173 50 56
inactiveCaptionBorder #88c0b8 136 192 184 171 29 75
inactiveCaptionText #c0c0c0 192 192 192 0 0 75
info #c8e0d8 200 224 216 160 10 87
infoText #000000 0 0 0 0 0 0
menu #88c0b8 136 192 184 171 29 75
menuText #000000 0 0 0 0 0 0
scrollbar #c8e0d8 200 224 216 160 10 87
text #c8e0d8 200 224 216 160 10 87
textHighlight #000080 0 0 128 240 100 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #489088 72 144 136 173 50 56
textText #000000 0 0 0 0 0 0
window #c8e0d8 200 224 216 160 10 87
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Plum theme

The Plum theme uses black text on a purple-beige background with purple and turquoise highlights. The window title bar's lighter purple secondary color is not represented in Java's SystemColor set.

Windows XP Plum theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #484060 72 64 96 254 33 37
activeCaptionBorder #a89890 168 152 144 300 5 59
activeCaptionText #ffffff 255 255 255 0 0 100
control #a89890 168 152 144 300 5 59
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #a89890 168 152 144 300 5 59
controlLtHighlight #d8d0c8 216 208 200 0 3 81
controlShadow #786058 120 96 88 240 8 37
controlText #000000 0 0 0 0 0 0
desktop #402840 64 40 64 300 37 25
inactiveCaption #786058 120 96 88 240 8 37
inactiveCaptionBorder #a89890 168 152 144 300 5 59
inactiveCaptionText #a89890 168 152 144 300 5 59
info #d5ccc8 213 204 200 285 1 80
infoText #300058 48 0 88 272 100 34
menu #a89890 168 152 144 300 5 59
menuText #000000 0 0 0 0 0 0
scrollbar #d8d0c8 216 208 200 0 3 81
text #d8d0c8 216 208 200 0 3 81
textHighlight #008080 0 128 128 180 100 50
textHighlightText #d8d0c8 216 208 200 0 3 81
textInactiveText #786058 120 96 88 240 8 37
textText #000000 0 0 0 0 0 0
window #d8d0c8 216 208 200 0 3 81
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Pumpkin theme

The Pumpkin theme uses black text on an orange-beige background with orange and purple highlights. The window title bar's light orange secondary color is not represented in Java's SystemColor set.

Windows XP Plum theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #d7a52f 215 165 47 34 71 64
activeCaptionBorder #ecd59d 236 213 157 35 26 83
activeCaptionText #ffffff 255 255 255 0 0 100
control #ecd59d 236 213 157 35 26 83
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #ecd59d 236 213 157 35 26 83
controlLtHighlight #f5eacf 245 234 207 35 11 91
controlShadow #d7a52f 215 165 47 34 71 64
controlText #000000 0 0 0 0 0 0
desktop #420042 66 0 66 300 100 25
inactiveCaption #a0a0a4 160 160 164 240 2 64
inactiveCaptionBorder #ecd59d 236 213 157 35 26 83
inactiveCaptionText #f5eacf 245 234 207 35 11 91
info #ffffff 255 255 255 0 0 100
infoText #800080 128 0 128 300 100 50
menu #ecd59d 236 213 157 35 26 83
menuText #000000 0 0 0 0 0 0
scrollbar #f5eacf 245 234 207 35 11 91
text #ffffff 255 255 255 0 0 100
textHighlight #800080 128 0 128 300 100 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #d7a52f 215 165 47 34 71 64
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Rainy Day theme

The Rainy Day theme uses black text on a dark blue-gray background with gray highlights. The window title bar's lighter blue secondary color is not represented in Java's SystemColor set.

Windows XP Rainy Day theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #4f657d 79 101 125 211 36 49
activeCaptionBorder #8399b1 131 153 177 211 25 69
activeCaptionText #ffffff 255 255 255 0 0 100
control #8399b1 131 153 177 211 25 69
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #8399b1 131 153 177 211 25 69
controlLtHighlight #c1ccd9 193 204 217 212 11 85
controlShadow #4f657d 79 101 125 211 36 49
controlText #000000 0 0 0 0 0 0
desktop #000000 0 0 0 0 0 0
inactiveCaption #808080 128 128 128 0 0 50
inactiveCaptionBorder #8399b1 131 153 177 211 25 69
inactiveCaptionText #c1ccd9 193 204 217 212 11 85
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #8399b1 131 153 177 211 25 69
menuText #000000 0 0 0 0 0 0
scrollbar #c1ccd9 193 204 217 212 11 85
text #ffffff 255 255 255 0 0 100
textHighlight #4f657d 79 101 125 211 36 49
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #4f657d 79 101 125 211 36 49
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Red, White, & Blue theme

The Red, White, & Blue theme uses the Classic theme's black text on a neutral gray background with red highlights. The window title bar's dark blue secondary color is not represented in Java's SystemColor set.

Windows XP Red, White, & Blue theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #800000 128 0 0 0 0 0
activeCaptionBorder #c0c0c0 192 192 192 0 0 75
activeCaptionText #ffffff 255 255 255 0 0 100
control #c0c0c0 192 192 192 0 0 75
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #c0c0c0 192 192 192 0 0 75
controlLtHighlight #ffffff 255 255 255 0 0 100
controlShadow #808080 128 128 128 0 0 50
controlText #000000 0 0 0 0 0 0
desktop #000042 0 0 66 240 100 25
inactiveCaption #808080 128 128 128 0 0 50
inactiveCaptionBorder #c0c0c0 192 192 192 0 0 75
inactiveCaptionText #c0c0c0 192 192 192 0 0 75
info #ffffff 255 255 255 0 0 100
infoText #000080 0 0 128 240 100 50
menu #c0c0c0 192 192 192 0 0 75
menuText #000000 0 0 0 0 0 0
scrollbar #c0c0c0 192 192 192 0 0 75
text #ffffff 255 255 255 0 0 100
textHighlight #800000 128 0 0 0 0 0
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #808080 128 128 128 0 0 50
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Rose theme

The Rose theme uses black text on a pink background with rose highlights. The window title bar's white secondary color is not represented in Java's SystemColor set.

Windows XP Rose theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #9f6070 159 96 112 116 14 43
activeCaptionBorder #cfafb7 207 175 183 119 4 71
activeCaptionText #ffffff 255 255 255 0 0 100
control #cfafb7 207 175 183 119 4 71
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #cfafb7 207 175 183 119 4 71
controlLtHighlight #e7d8dc 231 216 220 104 1 86
controlShadow #9f6070 159 96 112 116 14 43
controlText #000000 0 0 0 0 0 0
desktop #808080 128 128 128 0 0 50
inactiveCaption #a0a0a4 160 160 164 240 2 64
inactiveCaptionBorder #cfafb7 207 175 183 119 4 71
inactiveCaptionText #7d7d7d 125 125 125 0 0 49
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #cfafb7 207 175 183 119 4 71
menuText #000000 0 0 0 0 0 0
scrollbar #cfafb7 207 175 183 119 4 71
text #ffffff 255 255 255 0 0 100
textHighlight #9f6070 159 96 112 116 14 43
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #9f6070 159 96 112 116 14 43
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Slate theme

The Slate theme uses black text on a blue-gray background with gray highlights. The window title bar's light blue secondary color is not represented in Java's SystemColor set.

Windows XP Slate theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #558097 85 128 151 200 43 59
activeCaptionBorder #9db9c8 157 185 200 200 21 78
activeCaptionText #ffffff 255 255 255 0 0 100
control #9db9c8 157 185 200 200 21 78
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #9db9c8 157 185 200 200 21 78
controlLtHighlight #cedce3 206 220 227 199 9 89
controlShadow #558097 85 128 151 200 43 59
controlText #000000 0 0 0 0 0 0
desktop #414141 65 65 65 0 0 25
inactiveCaption #808080 128 128 128 0 0 50
inactiveCaptionBorder #9db9c8 157 185 200 200 21 78
inactiveCaptionText #c0c0c0 192 192 192 0 0 75
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #9db9c8 157 185 200 200 21 78
menuText #000000 0 0 0 0 0 0
scrollbar #cedce3 206 220 227 199 9 89
text #ffffff 255 255 255 0 0 100
textHighlight #558097 85 128 151 200 43 59
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #558097 85 128 151 200 43 59
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Spruce theme

The Spruce theme uses black text on a light green background with darker olive green highlights. The window title bar's light blue secondary color is not represented in Java's SystemColor set.

Windows XP Spruce theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #599764 89 151 100 130 41 59
activeCaptionBorder #a2c8a9 162 200 169 131 19 78
activeCaptionText #ffffff 255 255 255 0 0 100
control #a2c8a9 162 200 169 131 19 78
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #a2c8a9 162 200 169 131 19 78
controlLtHighlight #d0e3d3 208 227 211 129 8 89
controlShadow #599764 89 151 100 130 41 59
controlText #000000 0 0 0 0 0 0
desktop #213f21 33 63 33 120 47 24
inactiveCaption #808080 128 128 128 0 0 50
inactiveCaptionBorder #a2c8a9 162 200 169 131 19 78
inactiveCaptionText #d0e3d3 208 227 211 129 8 89
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #a2c8a9 162 200 169 131 19 78
menuText #000000 0 0 0 0 0 0
scrollbar #d0e3d3 208 227 211 129 8 89
text #ffffff 255 255 255 0 0 100
textHighlight #599764 89 151 100 130 41 59
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #599764 89 151 100 130 41 59
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Storm theme

The Storm theme uses the Classic theme's black text on a neutral gray background with purple highlights. The window title bar's blue secondary color is not represented in Java's SystemColor set.

Windows XP Storm theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #800080 128 0 128 300 100 50
activeCaptionBorder #c0c0c0 192 192 192 0 0 75
activeCaptionText #ffffff 255 255 255 0 0 100
control #c0c0c0 192 192 192 0 0 75
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #c0c0c0 192 192 192 0 0 75
controlLtHighlight #ffffff 255 255 255 0 0 100
controlShadow #808080 128 128 128 0 0 50
controlText #000000 0 0 0 0 0 0
desktop #000000 0 0 0 0 0 0
inactiveCaption #808080 128 128 128 0 0 50
inactiveCaptionBorder #c0c0c0 192 192 192 0 0 75
inactiveCaptionText #c0c0c0 192 192 192 0 0 75
info #ffffff 255 255 255 0 0 100
infoText #800080 128 0 128 300 100 50
menu #c0c0c0 192 192 192 0 0 75
menuText #000000 0 0 0 0 0 0
scrollbar #c0c0c0 192 192 192 0 0 75
text #ffffff 255 255 255 0 0 100
textHighlight #800080 128 0 128 300 100 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #808080 128 128 128 0 0 50
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Teal theme

The Teal theme uses the Classic theme's black text on a neutral gray background with teal highlights. The window title bar's brighter teal secondary color is not represented in Java's SystemColor set.

Windows XP Teal theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #008080 0 128 128 180 100 50
activeCaptionBorder #c0c0c0 192 192 192 0 0 75
activeCaptionText #ffffff 255 255 255 0 0 100
control #c0c0c0 192 192 192 0 0 75
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #c0c0c0 192 192 192 0 0 75
controlLtHighlight #ffffff 255 255 255 0 0 100
controlShadow #808080 128 128 128 0 0 50
controlText #000000 0 0 0 0 0 0
desktop #004040 0 64 64 180 100 25
inactiveCaption #808080 128 128 128 0 0 50
inactiveCaptionBorder #c0c0c0 192 192 192 0 0 75
inactiveCaptionText #fffbf0 255 251 240 38 4 98
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #c0c0c0 192 192 192 0 0 75
menuText #000000 0 0 0 0 0 0
scrollbar #c0c0c0 192 192 192 0 0 75
text #ffffff 255 255 255 0 0 100
textHighlight #008080 0 128 128 180 100 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #808080 128 128 128 0 0 50
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Wheat theme

The Teal theme uses black text on a light yellow background with tan highlights. The window title bar's orange secondary color is not represented in Java's SystemColor set.

Windows XP Wheat theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #808000 128 128 0 59 100 50
activeCaptionBorder #dedea0 222 222 160 59 27 87
activeCaptionText #ffffff 255 255 255 0 0 100
control #dedea0 222 222 160 59 27 87
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #dedea0 222 222 160 59 27 87
controlLtHighlight #eeeed0 238 238 208 59 12 93
controlShadow #bcbc41 188 188 65 59 65 73
controlText #000000 0 0 0 0 0 0
desktop #00401d 0 64 29 147 100 25
inactiveCaption #bcbc41 188 188 65 59 65 73
inactiveCaptionBorder #dedea0 222 222 160 59 27 87
inactiveCaptionText #ffffff 255 255 255 0 0 100
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #dedea0 222 222 160 59 27 87
menuText #000000 0 0 0 0 0 0
scrollbar #eeeed0 238 238 208 59 12 93
text #ffffff 255 255 255 0 0 100
textHighlight #808000 128 128 0 59 100 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #bcbc41 188 188 65 59 65 73
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

High contrast classic themes

The High Contrast themes are intended for the visually impaired. They have the same window and component shapes as the Classic themes, but with a high-contrast color palette and no bevels and gradients.

All of the High Contrast Classic themes are also available in Windows Vista and Windows 7, though a few have minor color differences.

High Contrast 1 theme

The High Contrast 1 theme uses yellow text on a black background with green highlights.

Windows XP High Contrast 1 theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #0000ff 0 0 255 240 100 100
activeCaptionBorder #0000ff 0 0 255 240 100 100
activeCaptionText #ffffff 255 255 255 0 0 100
control #000000 0 0 0 0 0 0
controlDkShadow #ffffff 255 255 255 0 0 100
controlHighlight #ffffff 255 255 255 0 0 100
controlLtHighlight #c0c0c0 192 192 192 0 0 75
controlShadow #808080 128 128 128 0 0 50
controlText #ffffff 255 255 255 0 0 100
desktop #000000 0 0 0 0 0 0
inactiveCaption #00ffff 0 255 255 180 100 100
inactiveCaptionBorder #00ffff 0 255 255 180 100 100
inactiveCaptionText #000000 0 0 0 0 0 0
info #000000 0 0 0 0 0 0
infoText #ffff00 255 255 0 59 100 100
menu #000000 0 0 0 0 0 0
menuText #ffffff 255 255 255 0 0 100
scrollbar #000000 0 0 0 0 0 0
text #000000 0 0 0 0 0 0
textHighlight #008000 0 128 0 120 100 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #00ff00 0 255 0 120 100 100
textText #ffff00 255 255 0 59 100 100
window #000000 0 0 0 0 0 0
windowBorder #ffffff 255 255 255 0 0 100
windowText #ffff00 255 255 0 59 100 100

High Contrast 2 theme

The High Contrast 2 theme uses green text on a black background with blue highlights.

Windows XP High Contrast 2 theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #00ffff 0 255 255 180 100 100
activeCaptionBorder #00ffff 0 255 255 180 100 100
activeCaptionText #000000 0 0 0 0 0 0
control #000000 0 0 0 0 0 0
controlDkShadow #ffffff 255 255 255 0 0 100
controlHighlight #ffffff 255 255 255 0 0 100
controlLtHighlight #c0c0c0 192 192 192 0 0 75
controlShadow #808080 128 128 128 0 0 50
controlText #00ff00 0 255 0 120 100 100
desktop #000000 0 0 0 0 0 0
inactiveCaption #0000ff 0 0 255 240 100 100
inactiveCaptionBorder #0000ff 0 0 255 240 100 100
inactiveCaptionText #ffffff 255 255 255 0 0 100
info #ffff00 255 255 0 59 100 100
infoText #000000 0 0 0 0 0 0
menu #000000 0 0 0 0 0 0
menuText #00ff00 0 255 0 120 100 100
scrollbar #000000 0 0 0 0 0 0
text #000000 0 0 0 0 0 0
textHighlight #0000ff 0 0 255 240 100 100
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #00ff00 0 255 0 120 100 100
textText #00ff00 0 255 0 120 100 100
window #000000 0 0 0 0 0 0
windowBorder #ffffff 255 255 255 0 0 100
windowText #00ff00 0 255 0 120 100 100

High Contrast Black theme

The High Contrast Black theme uses white text on a black background with magenta highlights.

Windows XP High Contrast Black theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #800080 128 0 128 300 100 50
activeCaptionBorder #ffff00 255 255 0 59 100 100
activeCaptionText #ffffff 255 255 255 0 0 100
control #000000 0 0 0 0 0 0
controlDkShadow #ffffff 255 255 255 0 0 100
controlHighlight #ffffff 255 255 255 0 0 100
controlLtHighlight #c0c0c0 192 192 192 0 0 75
controlShadow #808080 128 128 128 0 0 50
controlText #ffffff 255 255 255 0 0 100
desktop #000000 0 0 0 0 0 0
inactiveCaption #008000 0 128 0 120 100 50
inactiveCaptionBorder #008000 0 128 0 120 100 50
inactiveCaptionText #ffffff 255 255 255 0 0 100
info #000000 0 0 0 0 0 0
infoText #ffffff 255 255 255 0 0 100
menu #000000 0 0 0 0 0 0
menuText #ffffff 255 255 255 0 0 100
scrollbar #000000 0 0 0 0 0 0
text #000000 0 0 0 0 0 0
textHighlight #800080 128 0 128 300 100 50
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #00ff00 0 255 0 120 100 100
textText #ffffff 255 255 255 0 0 100
window #000000 0 0 0 0 0 0
windowBorder #ffffff 255 255 255 0 0 100
windowText #ffffff 255 255 255 0 0 100

High Contrast White theme

The High Contrast White theme uses black text on a white background, and inverts the text and background colors for text highlighting.

Windows XP High Contrast White theme
Name Hex triplet Red Green Blue Hue Satur. Value
activeCaption #000000 0 0 0 0 0 0
activeCaptionBorder #808080 128 128 128 0 0 50
activeCaptionText #ffffff 255 255 255 0 0 100
control #ffffff 255 255 255 0 0 100
controlDkShadow #000000 0 0 0 0 0 0
controlHighlight #c0c0c0 192 192 192 0 0 75
controlLtHighlight #c0c0c0 192 192 192 0 0 75
controlShadow #808080 128 128 128 0 0 50
controlText #000000 0 0 0 0 0 0
desktop #ffffff 255 255 255 0 0 100
inactiveCaption #ffffff 255 255 255 0 0 100
inactiveCaptionBorder #c0c0c0 192 192 192 0 0 75
inactiveCaptionText #000000 0 0 0 0 0 0
info #ffffff 255 255 255 0 0 100
infoText #000000 0 0 0 0 0 0
menu #ffffff 255 255 255 0 0 100
menuText #000000 0 0 0 0 0 0
scrollbar #ffffff 255 255 255 0 0 100
text #ffffff 255 255 255 0 0 100
textHighlight #000000 0 0 0 0 0 0
textHighlightText #ffffff 255 255 255 0 0 100
textInactiveText #00ff00 0 255 0 120 100 100
textText #000000 0 0 0 0 0 0
window #ffffff 255 255 255 0 0 100
windowBorder #000000 0 0 0 0 0 0
windowText #000000 0 0 0 0 0 0

Downloads

Each theme's Java SystemColor set is available as a download in the X11 rgb.txt file format:

Further reading

Related articles at NadeauSoftware.com

Web articles

Comments

Windows RGB coding

This is a great help ... Thanks and a million

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

Nadeau software consulting
Nadeau software consulting