Colors Colors Colors Colors Class

Definition

Implements a set of predefined colors.

public ref class Colors sealed
public sealed class Colors
type Colors = class
Public NotInheritable Class Colors
Inheritance
ColorsColorsColorsColors

Remarks

The Windows Presentation Foundation color names match the .NET Framework, Windows Forms, and Microsoft Internet Explorer color names. This representation is based on UNIX X11 named color values.

The following image shows each predefined color, its name, and its hexadecimal value.

Predefined colors
Color Table including a color swatch, the color name, and the hexadecimal value

See the Brush class for a variety of other more complex ways you can color an area, including gradients (LinearGradientBrush, RadialGradientBrush) or images (ImageBrush).

XAML Text Usage

You cannot declare this managed class in XAML, but you can use its static properties to assign values in XAML.

Properties

AliceBlue AliceBlue AliceBlue AliceBlue

Gets the system-defined color that has an ARGB value of #FFF0F8FF.

AntiqueWhite AntiqueWhite AntiqueWhite AntiqueWhite

Gets the system-defined color that has an ARGB value of #FFFAEBD7.

Aqua Aqua Aqua Aqua

Gets the system-defined color that has an ARGB value of #FF00FFFF.

Aquamarine Aquamarine Aquamarine Aquamarine

Gets the system-defined color that has an ARGB value of #FF7FFFD4.

Azure Azure Azure Azure

Gets the system-defined color that has an ARGB value of #FFF0FFFF.

Beige Beige Beige Beige

Gets the system-defined color that has an ARGB value of #FFF5F5DC.

Bisque Bisque Bisque Bisque

Gets the system-defined color that has an ARGB value of #FFFFE4C4.

Black Black Black Black

Gets the system-defined color that has an ARGB value of #FF000000.

BlanchedAlmond BlanchedAlmond BlanchedAlmond BlanchedAlmond

Gets the system-defined color that has an ARGB value of #FFFFEBCD.

Blue Blue Blue Blue

Gets the system-defined color that has an ARGB value of #FF0000FF.

BlueViolet BlueViolet BlueViolet BlueViolet

Gets the system-defined color that has an ARGB value of #FF8A2BE2.

Brown Brown Brown Brown

Gets the system-defined color that has an ARGB value of #FFA52A2A.

BurlyWood BurlyWood BurlyWood BurlyWood

Gets the system-defined color that has an ARGB value of #FFDEB887.

CadetBlue CadetBlue CadetBlue CadetBlue

Gets the system-defined color that has an ARGB value of #FF5F9EA0.

Chartreuse Chartreuse Chartreuse Chartreuse

Gets the system-defined color that has an ARGB value of #FF7FFF00.

Chocolate Chocolate Chocolate Chocolate

Gets the system-defined color that has an ARGB value of #FFD2691E.

Coral Coral Coral Coral

Gets the system-defined color that has an ARGB value of #FFFF7F50.

CornflowerBlue CornflowerBlue CornflowerBlue CornflowerBlue

Gets the system-defined color that has an ARGB value of #FF6495ED.

Cornsilk Cornsilk Cornsilk Cornsilk

Gets the system-defined color that has an ARGB value of #FFFFF8DC.

Crimson Crimson Crimson Crimson

Gets the system-defined color that has an ARGB value of #FFDC143C.

Cyan Cyan Cyan Cyan

Gets the system-defined color that has an ARGB value of #FF00FFFF.

DarkBlue DarkBlue DarkBlue DarkBlue

Gets the system-defined color that has an ARGB value of #FF00008B.

DarkCyan DarkCyan DarkCyan DarkCyan

Gets the system-defined color that has an ARGB value of #FF008B8B.

DarkGoldenrod DarkGoldenrod DarkGoldenrod DarkGoldenrod

Gets the system-defined color that has an ARGB value of #FFB8860B.

DarkGray DarkGray DarkGray DarkGray

Gets the system-defined color that has an ARGB value of #FFA9A9A9.

DarkGreen DarkGreen DarkGreen DarkGreen

Gets the system-defined color that has an ARGB value of #FF006400.

DarkKhaki DarkKhaki DarkKhaki DarkKhaki

Gets the system-defined color that has an ARGB value of #FFBDB76B.

DarkMagenta DarkMagenta DarkMagenta DarkMagenta

Gets the system-defined color that has an ARGB value of #FF8B008B.

DarkOliveGreen DarkOliveGreen DarkOliveGreen DarkOliveGreen

Gets the system-defined color that has an ARGB value of #FF556B2F.

DarkOrange DarkOrange DarkOrange DarkOrange

Gets the system-defined color that has an ARGB value of #FFFF8C00.

DarkOrchid DarkOrchid DarkOrchid DarkOrchid

Gets the system-defined color that has an ARGB value of #FF9932CC.

DarkRed DarkRed DarkRed DarkRed

Gets the system-defined color that has an ARGB value of #FF8B0000.

DarkSalmon DarkSalmon DarkSalmon DarkSalmon

Gets the system-defined color that has an ARGB value of #FFE9967A.

DarkSeaGreen DarkSeaGreen DarkSeaGreen DarkSeaGreen

Gets the system-defined color that has an ARGB value of #FF8FBC8F.

DarkSlateBlue DarkSlateBlue DarkSlateBlue DarkSlateBlue

Gets the system-defined color that has an ARGB value of #FF483D8B.

DarkSlateGray DarkSlateGray DarkSlateGray DarkSlateGray

Gets the system-defined color that has an ARGB value of #FF2F4F4F.

DarkTurquoise DarkTurquoise DarkTurquoise DarkTurquoise

Gets the system-defined color that has an ARGB value of #FF00CED1.

DarkViolet DarkViolet DarkViolet DarkViolet

Gets the system-defined color that has an ARGB value of #FF9400D3.

DeepPink DeepPink DeepPink DeepPink

Gets the system-defined color that has an ARGB value of #FFFF1493.

DeepSkyBlue DeepSkyBlue DeepSkyBlue DeepSkyBlue

Gets the system-defined color that has an ARGB value of #FF00BFFF.

DimGray DimGray DimGray DimGray

Gets the system-defined color that has an ARGB value of #FF696969.

DodgerBlue DodgerBlue DodgerBlue DodgerBlue

Gets the system-defined color that has an ARGB value of #FF1E90FF.

Firebrick Firebrick Firebrick Firebrick

Gets the system-defined color that has an ARGB value of #FFB22222.

FloralWhite FloralWhite FloralWhite FloralWhite

Gets the system-defined color that has an ARGB value of #FFFFFAF0.

ForestGreen ForestGreen ForestGreen ForestGreen

Gets the system-defined color that has an ARGB value of #FF228B22.

Fuchsia Fuchsia Fuchsia Fuchsia

Gets the system-defined color that has an ARGB value of #FFFF00FF.

Gainsboro Gainsboro Gainsboro Gainsboro

Gets the system-defined color that has an ARGB value of #FFDCDCDC.

GhostWhite GhostWhite GhostWhite GhostWhite

Gets the system-defined color that has an ARGB value of #FFF8F8FF.

Gold Gold Gold Gold

Gets the system-defined color that has an ARGB value of #FFFFD700.

Goldenrod Goldenrod Goldenrod Goldenrod

Gets the system-defined color that has an ARGB value of #FFDAA520.

Gray Gray Gray Gray

Gets the system-defined color that has an ARGB value of #FF808080.

Green Green Green Green

Gets the system-defined color that has an ARGB value of #FF008000.

GreenYellow GreenYellow GreenYellow GreenYellow

Gets the system-defined color that has an ARGB value of #FFADFF2F.

Honeydew Honeydew Honeydew Honeydew

Gets the system-defined color that has an ARGB value of #FFF0FFF0.

HotPink HotPink HotPink HotPink

Gets the system-defined color that has an ARGB value of #FFFF69B4.

IndianRed IndianRed IndianRed IndianRed

Gets the system-defined color that has an ARGB value of #FFCD5C5C.

Indigo Indigo Indigo Indigo

Gets the system-defined color that has an ARGB value of #FF4B0082.

Ivory Ivory Ivory Ivory

Gets the system-defined color that has an ARGB value of #FFFFFFF0.

Khaki Khaki Khaki Khaki

Gets the system-defined color that has an ARGB value of #FFF0E68C.

Lavender Lavender Lavender Lavender

Gets the system-defined color that has an ARGB value of #FFE6E6FA.

LavenderBlush LavenderBlush LavenderBlush LavenderBlush

Gets the system-defined color that has an ARGB value of #FFFFF0F5.

LawnGreen LawnGreen LawnGreen LawnGreen

Gets the system-defined color that has an ARGB value of #FF7CFC00.

LemonChiffon LemonChiffon LemonChiffon LemonChiffon

Gets the system-defined color that has an ARGB value of #FFFFFACD.

LightBlue LightBlue LightBlue LightBlue

Gets the system-defined color that has an ARGB value of #FFADD8E6.

LightCoral LightCoral LightCoral LightCoral

Gets the system-defined color that has an ARGB value of #FFF08080.

LightCyan LightCyan LightCyan LightCyan

Gets the system-defined color that has an ARGB value of #FFE0FFFF.

LightGoldenrodYellow LightGoldenrodYellow LightGoldenrodYellow LightGoldenrodYellow

Gets the system-defined color that has an ARGB value of #FFFAFAD2.

LightGray LightGray LightGray LightGray

Gets the system-defined color that has an ARGB value of #FFD3D3D3.

LightGreen LightGreen LightGreen LightGreen

Gets the system-defined color that has an ARGB value of #FF90EE90.

LightPink LightPink LightPink LightPink

Gets the system-defined color that has an ARGB value of #FFFFB6C1.

LightSalmon LightSalmon LightSalmon LightSalmon

Gets the system-defined color that has an ARGB value of #FFFFA07A.

LightSeaGreen LightSeaGreen LightSeaGreen LightSeaGreen

Gets the system-defined color that has an ARGB value of #FF20B2AA.

LightSkyBlue LightSkyBlue LightSkyBlue LightSkyBlue

Gets the system-defined color that has an ARGB value of #FF87CEFA.

LightSlateGray LightSlateGray LightSlateGray LightSlateGray

Gets the system-defined color that has an ARGB value of #FF778899.

LightSteelBlue LightSteelBlue LightSteelBlue LightSteelBlue

Gets the system-defined color that has an ARGB value of #FFB0C4DE.

LightYellow LightYellow LightYellow LightYellow

Gets the system-defined color that has an ARGB value of #FFFFFFE0.

Lime Lime Lime Lime

Gets the system-defined color that has an ARGB value of #FF00FF00.

LimeGreen LimeGreen LimeGreen LimeGreen

Gets the system-defined color that has an ARGB value of #FF32CD32.

Linen Linen Linen Linen

Gets the system-defined color that has an ARGB value of #FFFAF0E6.

Magenta Magenta Magenta Magenta

Gets the system-defined color that has an ARGB value of #FFFF00FF.

Maroon Maroon Maroon Maroon

Gets the system-defined color that has an ARGB value of #FF800000.

MediumAquamarine MediumAquamarine MediumAquamarine MediumAquamarine

Gets the system-defined color that has an ARGB value of #FF66CDAA.

MediumBlue MediumBlue MediumBlue MediumBlue

Gets the system-defined color that has an ARGB value of #FF0000CD.

MediumOrchid MediumOrchid MediumOrchid MediumOrchid

Gets the system-defined color that has an ARGB value of #FFBA55D3.

MediumPurple MediumPurple MediumPurple MediumPurple

Gets the system-defined color that has an ARGB value of #FF9370DB.

MediumSeaGreen MediumSeaGreen MediumSeaGreen MediumSeaGreen

Gets the system-defined color that has an ARGB value of #FF3CB371.

MediumSlateBlue MediumSlateBlue MediumSlateBlue MediumSlateBlue

Gets the system-defined color that has an ARGB value of #FF7B68EE.

MediumSpringGreen MediumSpringGreen MediumSpringGreen MediumSpringGreen

Gets the system-defined color that has an ARGB value of #FF00FA9A.

MediumTurquoise MediumTurquoise MediumTurquoise MediumTurquoise

Gets the system-defined color that has an ARGB value of #FF48D1CC.

MediumVioletRed MediumVioletRed MediumVioletRed MediumVioletRed

Gets the system-defined color that has an ARGB value of #FFC71585.

MidnightBlue MidnightBlue MidnightBlue MidnightBlue

Gets the system-defined color that has an ARGB value of #FF191970.

MintCream MintCream MintCream MintCream

Gets the system-defined color that has an ARGB value of #FFF5FFFA.

MistyRose MistyRose MistyRose MistyRose

Gets the system-defined color that has an ARGB value of #FFFFE4E1.

Moccasin Moccasin Moccasin Moccasin

Gets the system-defined color that has an ARGB value of #FFFFE4B5.

NavajoWhite NavajoWhite NavajoWhite NavajoWhite

Gets the system-defined color that has an ARGB value of #FFFFDEAD.

Navy Navy Navy Navy

Gets the system-defined color that has an ARGB value of #FF000080.

OldLace OldLace OldLace OldLace

Gets the system-defined color that has an ARGB value of #FFFDF5E6.

Olive Olive Olive Olive

Gets the system-defined color that has an ARGB value of #FF808000.

OliveDrab OliveDrab OliveDrab OliveDrab

Gets the system-defined color that has an ARGB value of #FF6B8E23.

Orange Orange Orange Orange

Gets the system-defined color that has an ARGB value of #FFFFA500.

OrangeRed OrangeRed OrangeRed OrangeRed

Gets the system-defined color that has an ARGB value of #FFFF4500.

Orchid Orchid Orchid Orchid

Gets the system-defined color that has an ARGB value of #FFDA70D6.

PaleGoldenrod PaleGoldenrod PaleGoldenrod PaleGoldenrod

Gets the system-defined color that has an ARGB value of #FFEEE8AA.

PaleGreen PaleGreen PaleGreen PaleGreen

Gets the system-defined color that has an ARGB value of #FF98FB98.

PaleTurquoise PaleTurquoise PaleTurquoise PaleTurquoise

Gets the system-defined color that has an ARGB value of #FFAFEEEE.

PaleVioletRed PaleVioletRed PaleVioletRed PaleVioletRed

Gets the system-defined color that has an ARGB value of #FFDB7093.

PapayaWhip PapayaWhip PapayaWhip PapayaWhip

Gets the system-defined color that has an ARGB value of #FFFFEFD5.

PeachPuff PeachPuff PeachPuff PeachPuff

Gets the system-defined color that has an ARGB value of #FFFFDAB9.

Peru Peru Peru Peru

Gets the system-defined color that has an ARGB value of #FFCD853F.

Pink Pink Pink Pink

Gets the system-defined color that has an ARGB value of #FFFFC0CB.

Plum Plum Plum Plum

Gets the system-defined color that has an ARGB value of #FFDDA0DD.

PowderBlue PowderBlue PowderBlue PowderBlue

Gets the system-defined color that has an ARGB value of #FFB0E0E6.

Purple Purple Purple Purple

Gets the system-defined color that has an ARGB value of #FF800080.

Red Red Red Red

Gets the system-defined color that has an ARGB value of #FFFF0000.

RosyBrown RosyBrown RosyBrown RosyBrown

Gets the system-defined color that has an ARGB value of #FFBC8F8F.

RoyalBlue RoyalBlue RoyalBlue RoyalBlue

Gets the system-defined color that has an ARGB value of #FF4169E1.

SaddleBrown SaddleBrown SaddleBrown SaddleBrown

Gets the system-defined color that has an ARGB value of #FF8B4513.

Salmon Salmon Salmon Salmon

Gets the system-defined color that has an ARGB value of #FFFA8072.

SandyBrown SandyBrown SandyBrown SandyBrown

Gets the system-defined color that has an ARGB value of #FFF4A460.

SeaGreen SeaGreen SeaGreen SeaGreen

Gets the system-defined color that has an ARGB value of #FF2E8B57.

SeaShell SeaShell SeaShell SeaShell

Gets the system-defined color that has an ARGB value of #FFFFF5EE.

Sienna Sienna Sienna Sienna

Gets the system-defined color that has an ARGB value of #FFA0522D.

Silver Silver Silver Silver

Gets the system-defined color that has an ARGB value of #FFC0C0C0.

SkyBlue SkyBlue SkyBlue SkyBlue

Gets the system-defined color that has an ARGB value of #FF87CEEB.

SlateBlue SlateBlue SlateBlue SlateBlue

Gets the system-defined color that has an ARGB value of #FF6A5ACD.

SlateGray SlateGray SlateGray SlateGray

Gets the system-defined color that has an ARGB value of #FF708090.

Snow Snow Snow Snow

Gets the system-defined color that has an ARGB value of #FFFFFAFA.

SpringGreen SpringGreen SpringGreen SpringGreen

Gets the system-defined color that has an ARGB value of #FF00FF7F.

SteelBlue SteelBlue SteelBlue SteelBlue

Gets the system-defined color that has an ARGB value of #FF4682B4.

Tan Tan Tan Tan

Gets the system-defined color that has an ARGB value of #FFD2B48C.

Teal Teal Teal Teal

Gets the system-defined color that has an ARGB value of #FF008080.

Thistle Thistle Thistle Thistle

Gets the system-defined color that has an ARGB value of #FFD8BFD8.

Tomato Tomato Tomato Tomato

Gets the system-defined color that has an ARGB value of #FFFF6347.

Transparent Transparent Transparent Transparent

Gets the system-defined color that has an ARGB value of #00FFFFFF.

Turquoise Turquoise Turquoise Turquoise

Gets the system-defined color that has an ARGB value of #FF40E0D0.

Violet Violet Violet Violet

Gets the system-defined color that has an ARGB value of #FFEE82EE.

Wheat Wheat Wheat Wheat

Gets the system-defined color that has an ARGB value of #FFF5DEB3.

White White White White

Gets the system-defined color that has an ARGB value of #FFFFFFFF.

WhiteSmoke WhiteSmoke WhiteSmoke WhiteSmoke

Gets the system-defined color that has an ARGB value of #FFF5F5F5.

Yellow Yellow Yellow Yellow

Gets the system-defined color that has an ARGB value of #FFFFFF00.

YellowGreen YellowGreen YellowGreen YellowGreen

Gets the system-defined color that has an ARGB value of #FF9ACD32.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See Also