Colors Class
TOC
Collapse the table of content
Expand the table of content

Colors Class

 

Implements a set of predefined colors.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

System.Object
  System.Windows.Media.Colors

public sealed class Colors

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticAliceBlue

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

System_CAPS_pubpropertySystem_CAPS_staticAntiqueWhite

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

System_CAPS_pubpropertySystem_CAPS_staticAqua

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

System_CAPS_pubpropertySystem_CAPS_staticAquamarine

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

System_CAPS_pubpropertySystem_CAPS_staticAzure

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

System_CAPS_pubpropertySystem_CAPS_staticBeige

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

System_CAPS_pubpropertySystem_CAPS_staticBisque

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

System_CAPS_pubpropertySystem_CAPS_staticBlack

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

System_CAPS_pubpropertySystem_CAPS_staticBlanchedAlmond

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

System_CAPS_pubpropertySystem_CAPS_staticBlue

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

System_CAPS_pubpropertySystem_CAPS_staticBlueViolet

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

System_CAPS_pubpropertySystem_CAPS_staticBrown

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

System_CAPS_pubpropertySystem_CAPS_staticBurlyWood

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

System_CAPS_pubpropertySystem_CAPS_staticCadetBlue

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

System_CAPS_pubpropertySystem_CAPS_staticChartreuse

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

System_CAPS_pubpropertySystem_CAPS_staticChocolate

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

System_CAPS_pubpropertySystem_CAPS_staticCoral

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

System_CAPS_pubpropertySystem_CAPS_staticCornflowerBlue

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

System_CAPS_pubpropertySystem_CAPS_staticCornsilk

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

System_CAPS_pubpropertySystem_CAPS_staticCrimson

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

System_CAPS_pubpropertySystem_CAPS_staticCyan

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

System_CAPS_pubpropertySystem_CAPS_staticDarkBlue

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

System_CAPS_pubpropertySystem_CAPS_staticDarkCyan

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

System_CAPS_pubpropertySystem_CAPS_staticDarkGoldenrod

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

System_CAPS_pubpropertySystem_CAPS_staticDarkGray

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

System_CAPS_pubpropertySystem_CAPS_staticDarkGreen

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

System_CAPS_pubpropertySystem_CAPS_staticDarkKhaki

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

System_CAPS_pubpropertySystem_CAPS_staticDarkMagenta

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

System_CAPS_pubpropertySystem_CAPS_staticDarkOliveGreen

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

System_CAPS_pubpropertySystem_CAPS_staticDarkOrange

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

System_CAPS_pubpropertySystem_CAPS_staticDarkOrchid

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

System_CAPS_pubpropertySystem_CAPS_staticDarkRed

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

System_CAPS_pubpropertySystem_CAPS_staticDarkSalmon

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

System_CAPS_pubpropertySystem_CAPS_staticDarkSeaGreen

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

System_CAPS_pubpropertySystem_CAPS_staticDarkSlateBlue

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

System_CAPS_pubpropertySystem_CAPS_staticDarkSlateGray

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

System_CAPS_pubpropertySystem_CAPS_staticDarkTurquoise

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

System_CAPS_pubpropertySystem_CAPS_staticDarkViolet

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

System_CAPS_pubpropertySystem_CAPS_staticDeepPink

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

System_CAPS_pubpropertySystem_CAPS_staticDeepSkyBlue

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

System_CAPS_pubpropertySystem_CAPS_staticDimGray

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

System_CAPS_pubpropertySystem_CAPS_staticDodgerBlue

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

System_CAPS_pubpropertySystem_CAPS_staticFirebrick

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

System_CAPS_pubpropertySystem_CAPS_staticFloralWhite

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

System_CAPS_pubpropertySystem_CAPS_staticForestGreen

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

System_CAPS_pubpropertySystem_CAPS_staticFuchsia

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

System_CAPS_pubpropertySystem_CAPS_staticGainsboro

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

System_CAPS_pubpropertySystem_CAPS_staticGhostWhite

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

System_CAPS_pubpropertySystem_CAPS_staticGold

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

System_CAPS_pubpropertySystem_CAPS_staticGoldenrod

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

System_CAPS_pubpropertySystem_CAPS_staticGray

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

System_CAPS_pubpropertySystem_CAPS_staticGreen

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

System_CAPS_pubpropertySystem_CAPS_staticGreenYellow

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

System_CAPS_pubpropertySystem_CAPS_staticHoneydew

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

System_CAPS_pubpropertySystem_CAPS_staticHotPink

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

System_CAPS_pubpropertySystem_CAPS_staticIndianRed

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

System_CAPS_pubpropertySystem_CAPS_staticIndigo

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

System_CAPS_pubpropertySystem_CAPS_staticIvory

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

System_CAPS_pubpropertySystem_CAPS_staticKhaki

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

System_CAPS_pubpropertySystem_CAPS_staticLavender

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

System_CAPS_pubpropertySystem_CAPS_staticLavenderBlush

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

System_CAPS_pubpropertySystem_CAPS_staticLawnGreen

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

System_CAPS_pubpropertySystem_CAPS_staticLemonChiffon

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

System_CAPS_pubpropertySystem_CAPS_staticLightBlue

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

System_CAPS_pubpropertySystem_CAPS_staticLightCoral

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

System_CAPS_pubpropertySystem_CAPS_staticLightCyan

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

System_CAPS_pubpropertySystem_CAPS_staticLightGoldenrodYellow

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

System_CAPS_pubpropertySystem_CAPS_staticLightGray

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

System_CAPS_pubpropertySystem_CAPS_staticLightGreen

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

System_CAPS_pubpropertySystem_CAPS_staticLightPink

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

System_CAPS_pubpropertySystem_CAPS_staticLightSalmon

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

System_CAPS_pubpropertySystem_CAPS_staticLightSeaGreen

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

System_CAPS_pubpropertySystem_CAPS_staticLightSkyBlue

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

System_CAPS_pubpropertySystem_CAPS_staticLightSlateGray

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

System_CAPS_pubpropertySystem_CAPS_staticLightSteelBlue

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

System_CAPS_pubpropertySystem_CAPS_staticLightYellow

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

System_CAPS_pubpropertySystem_CAPS_staticLime

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

System_CAPS_pubpropertySystem_CAPS_staticLimeGreen

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

System_CAPS_pubpropertySystem_CAPS_staticLinen

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

System_CAPS_pubpropertySystem_CAPS_staticMagenta

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

System_CAPS_pubpropertySystem_CAPS_staticMaroon

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

System_CAPS_pubpropertySystem_CAPS_staticMediumAquamarine

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

System_CAPS_pubpropertySystem_CAPS_staticMediumBlue

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

System_CAPS_pubpropertySystem_CAPS_staticMediumOrchid

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

System_CAPS_pubpropertySystem_CAPS_staticMediumPurple

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

System_CAPS_pubpropertySystem_CAPS_staticMediumSeaGreen

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

System_CAPS_pubpropertySystem_CAPS_staticMediumSlateBlue

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

System_CAPS_pubpropertySystem_CAPS_staticMediumSpringGreen

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

System_CAPS_pubpropertySystem_CAPS_staticMediumTurquoise

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

System_CAPS_pubpropertySystem_CAPS_staticMediumVioletRed

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

System_CAPS_pubpropertySystem_CAPS_staticMidnightBlue

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

System_CAPS_pubpropertySystem_CAPS_staticMintCream

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

System_CAPS_pubpropertySystem_CAPS_staticMistyRose

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

System_CAPS_pubpropertySystem_CAPS_staticMoccasin

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

System_CAPS_pubpropertySystem_CAPS_staticNavajoWhite

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

System_CAPS_pubpropertySystem_CAPS_staticNavy

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

System_CAPS_pubpropertySystem_CAPS_staticOldLace

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

System_CAPS_pubpropertySystem_CAPS_staticOlive

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

System_CAPS_pubpropertySystem_CAPS_staticOliveDrab

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

System_CAPS_pubpropertySystem_CAPS_staticOrange

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

System_CAPS_pubpropertySystem_CAPS_staticOrangeRed

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

System_CAPS_pubpropertySystem_CAPS_staticOrchid

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

System_CAPS_pubpropertySystem_CAPS_staticPaleGoldenrod

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

System_CAPS_pubpropertySystem_CAPS_staticPaleGreen

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

System_CAPS_pubpropertySystem_CAPS_staticPaleTurquoise

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

System_CAPS_pubpropertySystem_CAPS_staticPaleVioletRed

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

System_CAPS_pubpropertySystem_CAPS_staticPapayaWhip

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

System_CAPS_pubpropertySystem_CAPS_staticPeachPuff

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

System_CAPS_pubpropertySystem_CAPS_staticPeru

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

System_CAPS_pubpropertySystem_CAPS_staticPink

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

System_CAPS_pubpropertySystem_CAPS_staticPlum

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

System_CAPS_pubpropertySystem_CAPS_staticPowderBlue

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

System_CAPS_pubpropertySystem_CAPS_staticPurple

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

System_CAPS_pubpropertySystem_CAPS_staticRed

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

System_CAPS_pubpropertySystem_CAPS_staticRosyBrown

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

System_CAPS_pubpropertySystem_CAPS_staticRoyalBlue

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

System_CAPS_pubpropertySystem_CAPS_staticSaddleBrown

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

System_CAPS_pubpropertySystem_CAPS_staticSalmon

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

System_CAPS_pubpropertySystem_CAPS_staticSandyBrown

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

System_CAPS_pubpropertySystem_CAPS_staticSeaGreen

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

System_CAPS_pubpropertySystem_CAPS_staticSeaShell

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

System_CAPS_pubpropertySystem_CAPS_staticSienna

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

System_CAPS_pubpropertySystem_CAPS_staticSilver

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

System_CAPS_pubpropertySystem_CAPS_staticSkyBlue

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

System_CAPS_pubpropertySystem_CAPS_staticSlateBlue

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

System_CAPS_pubpropertySystem_CAPS_staticSlateGray

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

System_CAPS_pubpropertySystem_CAPS_staticSnow

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

System_CAPS_pubpropertySystem_CAPS_staticSpringGreen

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

System_CAPS_pubpropertySystem_CAPS_staticSteelBlue

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

System_CAPS_pubpropertySystem_CAPS_staticTan

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

System_CAPS_pubpropertySystem_CAPS_staticTeal

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

System_CAPS_pubpropertySystem_CAPS_staticThistle

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

System_CAPS_pubpropertySystem_CAPS_staticTomato

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

System_CAPS_pubpropertySystem_CAPS_staticTransparent

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

System_CAPS_pubpropertySystem_CAPS_staticTurquoise

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

System_CAPS_pubpropertySystem_CAPS_staticViolet

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

System_CAPS_pubpropertySystem_CAPS_staticWheat

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

System_CAPS_pubpropertySystem_CAPS_staticWhite

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

System_CAPS_pubpropertySystem_CAPS_staticWhiteSmoke

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

System_CAPS_pubpropertySystem_CAPS_staticYellow

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

System_CAPS_pubpropertySystem_CAPS_staticYellowGreen

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

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The Windows Presentation Foundation (WPF) color names match the Microsoft .NET Framework version 1.0, 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).

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

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft