KnownColor enum¶
Defined in
Namespace: Splat
Assembly: Splat.Drawing.dll
Full name: Splat.KnownColor
Modifiers: public sealed
Summary¶
Specifies a set of predefined colors that are recognized by name and can be used in color-related APIs. (ARGB format is 0xAARRGGBB).
Applies to
net10.0, net10.0-ios26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-macos26.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-windows10.0.17763, net9.0, net9.0-windows10.0.17763, net9.0-windows10.0.19041, net8.0, net8.0-windows10.0.19041, net8.0-windows10.0.17763, net462, net481
Remarks¶
The KnownColor enumeration includes both system colors (such as window backgrounds and control highlights) and standard named colors defined by web and platform standards. These values can be used to create colors by name or to identify colors in serialization and interoperability scenarios. Some colors may have the same RGB values but different names (for example, Aqua and Cyan).
Historical attribution (preserved from earlier sources):
Author: Dennis Hayes ([email protected]), Ben Houston ([email protected]).
© 2002 Dennis Hayes.
Copyright © 2004,2006 Novell, Inc (http://www.novell.com).
Licensed under the MIT license as part of the ReactiveUI repository.
Values¶
| Name | Value | Description |
|---|---|---|
Empty | 0 | Empty (0x00000000). Represents no color. |
ActiveBorder | 1 | ActiveBorder (0xFFD4D0C8). |
ActiveCaption | 2 | ActiveCaption (0xFF0054E3). |
ActiveCaptionText | 3 | ActiveCaptionText (0xFFFFFFFF). |
AppWorkspace | 4 | AppWorkspace (0xFF808080). |
Control | 5 | Control (0xFFECE9D8). |
ControlDark | 6 | ControlDark (0xFFACA899). |
ControlDarkDark | 7 | ControlDarkDark (0xFF716F64). |
ControlLight | 8 | ControlLight (0xFFF1EFE2). |
ControlLightLight | 9 | ControlLightLight (0xFFFFFFFF). |
ControlText | 10 | ControlText (0xFF000000). |
Desktop | 11 | Desktop (0xFF004E98). |
GrayText | 12 | GrayText (0xFFACA899). |
Highlight | 13 | Highlight (0xFF316AC5). |
HighlightText | 14 | HighlightText (0xFFFFFFFF). |
HotTrack | 15 | HotTrack (0xFF000080). |
InactiveBorder | 16 | InactiveBorder (0xFFD4D0C8). |
InactiveCaption | 17 | InactiveCaption (0xFF7A96DF). |
InactiveCaptionText | 18 | InactiveCaptionText (0xFFD8E4F8). |
Info | 19 | Info (0xFFFFFFE1). |
InfoText | 20 | InfoText (0xFF000000). |
Menu | 21 | Menu (0xFFFFFFFF). |
MenuText | 22 | MenuText (0xFF000000). |
ScrollBar | 23 | ScrollBar (0xFFD4D0C8). |
Window | 24 | Window (0xFFFFFFFF). |
WindowFrame | 25 | WindowFrame (0xFF000000). |
WindowText | 26 | WindowText (0xFF000000). |
Transparent | 27 | Transparent (0x00FFFFFF). Fully transparent (alpha = 0). |
AliceBlue | 28 | AliceBlue (0xFFF0F8FF). |
AntiqueWhite | 29 | AntiqueWhite (0xFFFAEBD7). |
Aqua | 30 | Aqua (0xFF00FFFF). Same RGB as [Cyan](# |
Aquamarine | 31 | Aquamarine (0xFF7FFFD4). |
Azure | 32 | Azure (0xFFF0FFFF). |
Beige | 33 | Beige (0xFFF5F5DC). |
Bisque | 34 | Bisque (0xFFFFE4C4). |
Black | 35 | The color black, with packed ARGB value 0xFF000000. |
BlanchedAlmond | 36 | BlanchedAlmond (0xFFFFEBCD). |
Blue | 37 | Blue (0xFF0000FF). |
BlueViolet | 38 | BlueViolet (0xFF8A2BE2). |
Brown | 39 | Brown (0xFFA52A2A). |
BurlyWood | 40 | BurlyWood (0xFFDEB887). |
CadetBlue | 41 | CadetBlue (0xFF5F9EA0). |
Chartreuse | 42 | Chartreuse (0xFF7FFF00). |
Chocolate | 43 | Chocolate (0xFFD2691E). |
Coral | 44 | Coral (0xFFFF7F50). |
CornflowerBlue | 45 | CornflowerBlue (0xFF6495ED). |
Cornsilk | 46 | Cornsilk (0xFFFFF8DC). |
Crimson | 47 | Crimson (0xFFDC143C). |
Cyan | 48 | Cyan (0xFF00FFFF). Same RGB as [Aqua](# |
DarkBlue | 49 | DarkBlue (0xFF00008B). |
DarkCyan | 50 | DarkCyan (0xFF008B8B). |
DarkGoldenrod | 51 | DarkGoldenrod (0xFFB8860B). |
DarkGray | 52 | DarkGray (0xFFA9A9A9). |
DarkGreen | 53 | DarkGreen (0xFF006400). |
DarkKhaki | 54 | DarkKhaki (0xFFBDB76B). |
DarkMagenta | 55 | DarkMagenta (0xFF8B008B). |
DarkOliveGreen | 56 | DarkOliveGreen (0xFF556B2F). |
DarkOrange | 57 | DarkOrange (0xFFFF8C00). |
DarkOrchid | 58 | DarkOrchid (0xFF9932CC). |
DarkRed | 59 | DarkRed (0xFF8B0000). |
DarkSalmon | 60 | DarkSalmon (0xFFE9967A). |
DarkSeaGreen | 61 | DarkSeaGreen (0xFF8FBC8B). |
DarkSlateBlue | 62 | DarkSlateBlue (0xFF483D8B). |
DarkSlateGray | 63 | DarkSlateGray (0xFF2F4F4F). |
DarkTurquoise | 64 | DarkTurquoise (0xFF00CED1). |
DarkViolet | 65 | DarkViolet (0xFF9400D3). |
DeepPink | 66 | DeepPink (0xFFFF1493). |
DeepSkyBlue | 67 | DeepSkyBlue (0xFF00BFFF). |
DimGray | 68 | DimGray (0xFF696969). |
DodgerBlue | 69 | DodgerBlue (0xFF1E90FF). |
Firebrick | 70 | Firebrick (0xFFB22222). |
FloralWhite | 71 | FloralWhite (0xFFFFFAF0). |
ForestGreen | 72 | ForestGreen (0xFF228B22). |
Fuchsia | 73 | Fuchsia (0xFFFF00FF). Same RGB as [Magenta](# |
Gainsboro | 74 | Gainsboro (0xFFDCDCDC). |
GhostWhite | 75 | GhostWhite (0xFFF8F8FF). |
Gold | 76 | Gold (0xFFFFD700). |
Goldenrod | 77 | Goldenrod (0xFFDAA520). |
Gray | 78 | The color gray, with packed ARGB value 0xFF808080. |
Green | 79 | The color green, with packed ARGB value 0xFF008000. |
GreenYellow | 80 | GreenYellow (0xFFADFF2F). |
Honeydew | 81 | Honeydew (0xFFF0FFF0). |
HotPink | 82 | HotPink (0xFFFF69B4). |
IndianRed | 83 | IndianRed (0xFFCD5C5C). |
Indigo | 84 | Indigo (0xFF4B0082). |
Ivory | 85 | Ivory (0xFFFFFFF0). |
Khaki | 86 | Khaki (0xFFF0E68C). |
Lavender | 87 | Lavender (0xFFE6E6FA). |
LavenderBlush | 88 | LavenderBlush (0xFFFFF0F5). |
LawnGreen | 89 | LawnGreen (0xFF7CFC00). |
LemonChiffon | 90 | LemonChiffon (0xFFFFFACD). |
LightBlue | 91 | LightBlue (0xFFADD8E6). |
LightCoral | 92 | LightCoral (0xFFF08080). |
LightCyan | 93 | LightCyan (0xFFE0FFFF). |
LightGoldenrodYellow | 94 | LightGoldenrodYellow (0xFFFAFAD2). |
LightGray | 95 | LightGray (0xFFD3D3D3). |
LightGreen | 96 | LightGreen (0xFF90EE90). |
LightPink | 97 | LightPink (0xFFFFB6C1). |
LightSalmon | 98 | LightSalmon (0xFFFFA07A). |
LightSeaGreen | 99 | LightSeaGreen (0xFF20B2AA). |
LightSkyBlue | 100 | LightSkyBlue (0xFF87CEFA). |
LightSlateGray | 101 | LightSlateGray (0xFF778899). |
LightSteelBlue | 102 | LightSteelBlue (0xFFB0C4DE). |
LightYellow | 103 | LightYellow (0xFFFFFFE0). |
Lime | 104 | Lime (0xFF00FF00). |
LimeGreen | 105 | LimeGreen (0xFF32CD32). |
Linen | 106 | Linen (0xFFFAF0E6). |
Magenta | 107 | Magenta (0xFFFF00FF). Same RGB as [Fuchsia](# |
Maroon | 108 | Maroon (0xFF800000). |
MediumAquamarine | 109 | MediumAquamarine (0xFF66CDAA). |
MediumBlue | 110 | MediumBlue (0xFF0000CD). |
MediumOrchid | 111 | MediumOrchid (0xFFBA55D3). |
MediumPurple | 112 | MediumPurple (0xFF9370DB). |
MediumSeaGreen | 113 | MediumSeaGreen (0xFF3CB371). |
MediumSlateBlue | 114 | MediumSlateBlue (0xFF7B68EE). |
MediumSpringGreen | 115 | MediumSpringGreen (0xFF00FA9A). |
MediumTurquoise | 116 | MediumTurquoise (0xFF48D1CC). |
MediumVioletRed | 117 | MediumVioletRed (0xFFC71585). |
MidnightBlue | 118 | MidnightBlue (0xFF191970). |
MintCream | 119 | MintCream (0xFFF5FFFA). |
MistyRose | 120 | MistyRose (0xFFFFE4E1). |
Moccasin | 121 | Moccasin (0xFFFFE4B5). |
NavajoWhite | 122 | NavajoWhite (0xFFFFDEAD). |
Navy | 123 | The color navy, with packed ARGB value 0xFF000080. |
OldLace | 124 | OldLace (0xFFFDF5E6). |
Olive | 125 | The color olive, with packed ARGB value 0xFF808000. |
OliveDrab | 126 | OliveDrab (0xFF6B8E23). |
Orange | 127 | Orange (0xFFFFA500). |
OrangeRed | 128 | OrangeRed (0xFFFF4500). |
Orchid | 129 | Orchid (0xFFDA70D6). |
PaleGoldenrod | 130 | PaleGoldenrod (0xFFEEE8AA). |
PaleGreen | 131 | PaleGreen (0xFF98FB98). |
PaleTurquoise | 132 | PaleTurquoise (0xFFAFEEEE). |
PaleVioletRed | 133 | PaleVioletRed (0xFFDB7093). |
PapayaWhip | 134 | PapayaWhip (0xFFFFEFD5). |
PeachPuff | 135 | PeachPuff (0xFFFFDAB9). |
Peru | 136 | Peru (0xFFCD853F). |
Pink | 137 | Pink (0xFFFFC0CB). |
Plum | 138 | Plum (0xFFDDA0DD). |
PowderBlue | 139 | PowderBlue (0xFFB0E0E6). |
Purple | 140 | Purple (0xFF800080). |
Red | 141 | Red (0xFFFF0000). |
RosyBrown | 142 | RosyBrown (0xFFBC8F8F). |
RoyalBlue | 143 | RoyalBlue (0xFF4169E1). |
SaddleBrown | 144 | SaddleBrown (0xFF8B4513). |
Salmon | 145 | Salmon (0xFFFA8072). |
SandyBrown | 146 | SandyBrown (0xFFF4A460). |
SeaGreen | 147 | SeaGreen (0xFF2E8B57). |
SeaShell | 148 | SeaShell (0xFFFFF5EE). |
Sienna | 149 | Sienna (0xFFA0522D). |
Silver | 150 | Silver (0xFFC0C0C0). |
SkyBlue | 151 | SkyBlue (0xFF87CEEB). |
SlateBlue | 152 | SlateBlue (0xFF6A5ACD). |
SlateGray | 153 | SlateGray (0xFF708090). |
Snow | 154 | Snow (0xFFFFFAFA). |
SpringGreen | 155 | SpringGreen (0xFF00FF7F). |
SteelBlue | 156 | SteelBlue (0xFF4682B4). |
Tan | 157 | Tan (0xFFD2B48C). |
Teal | 158 | The color teal, with packed ARGB value 0xFF008080. |
Thistle | 159 | Thistle (0xFFD8BFD8). |
Tomato | 160 | Tomato (0xFFFF6347). |
Turquoise | 161 | Turquoise (0xFF40E0D0). |
Violet | 162 | Violet (0xFFEE82EE). |
Wheat | 163 | Wheat (0xFFF5DEB3). |
White | 164 | White (0xFFFFFFFF). |
WhiteSmoke | 165 | WhiteSmoke (0xFFF5F5F5). |
Yellow | 166 | Yellow (0xFFFFFF00). |
YellowGreen | 167 | YellowGreen (0xFF9ACD32). |
ButtonFace | 168 | ButtonFace (0xFFECE9D8). |
ButtonHighlight | 169 | ButtonHighlight (0xFFFFFFFF). |
ButtonShadow | 170 | ButtonShadow (0xFFACA899). |
GradientActiveCaption | 171 | GradientActiveCaption (0xFF3D95FF). |
GradientInactiveCaption | 172 | GradientInactiveCaption (0xFF9DB9EB). |
MenuBar | 173 | MenuBar (0xFFECE9D8). |
MenuHighlight | 174 | MenuHighlight (0xFF316AC5). |