---
title: "Color Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Color Class
 
This is a base class for color values used in Graphics Mill for .NET.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public MustInherit Class Color _Implements ICloneable
```
 
```csharp
public abstract class Color : ICloneable
```
 
## Remarks
  
This is a base class for all colors in Graphics Mill for .NET. It can be used as a class factory - you can create [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) with [FromRgb(Byte, Byte, Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromRgb_3_6e8d960c.htm.md), [FromArgb(Byte, Byte, Byte, Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromArgb_4_ef9e6d81.htm.md) methods, and its siblings; [CmykColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_CmykColor.htm.md) with [FromCmyk(Byte, Byte, Byte, Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromCmyk_4_ef9e6d81.htm.md), [FromAcmyk(Byte, Byte, Byte, Byte, Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromAcmyk_5_d5cef10c.htm.md), etc; [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md) with [FromGrayScale(Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromGrayScale_1_846cbb0c.htm.md), [FromAGrayScale(Byte, Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromAGrayScale_2_db855281.htm.md), etc. Also there are extended analogues, which have a suffix 32.
 
Also you can get components (channels) by index using [GetChannel(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_CmykColor_GetChannel_1_e1836fc4.htm.md) method. A number of components can be returned by [ChannelCount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Color_ChannelCount.htm.md) property.
 
## Examples
  
```
Dim rgb As Aurigma.GraphicsMill.RgbColor = _
 Aurigma.GraphicsMill.Color.FromArgb(120, 255, 0, 0)
```
 
```csharp
Aurigma.GraphicsMill.RgbColor rgb = 
    Aurigma.GraphicsMill.Color.FromArgb(120, 255, 0, 0);
```
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - Aurigma.GraphicsMill.Color
        - [Aurigma.GraphicsMill.RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md)
        - [Aurigma.GraphicsMill.CmykColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_CmykColor.htm.md)
        - [Aurigma.GraphicsMill.GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md)
 
## Thread Safety
 Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [Color Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_Color.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
