---
title: "RgbColor Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.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/)

# RgbColor Class
 
This class represents color value in RGB color space.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Class RgbColor _Inherits Color
```
 
```csharp
public class RgbColor : Color
```
 
## Remarks
  
To get access to red, green, and blue component use [R](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_R.htm.md), [G](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_G.htm.md), and [B](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_B.htm.md) properties accordingly. Alpha channel is available through [A](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_A.htm.md) property. Also there are extended versions of these properties (that returns 16-bit version of the component). These properties have a suffix 32 (e.g. [R32](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_R32.htm.md), etc).
 
Also you can get components by index using [GetChannel(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_CmykColor_GetChannel_1_e1836fc4.htm.md) method.
 
This class implements cast operator for other color types as well as for [System.Drawing.Color](http://msdn2.microsoft.com/en-us/14w97wkc). Note, when you convert colors, no color management is applied. To convert colors with color management, use [ConvertColor(Color, ColorProfile)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_PixelFormatConverter_ConvertColor_2_6c08ebc6.htm.md) method of [PixelFormatConverter](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_PixelFormatConverter.htm.md) class.
 
There are a number static properties which return predefined colors, such as [Red](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_Red.htm.md), [Maroon](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_Maroon.htm.md), [Pink](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_Pink.htm.md), [SeaGreen](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_RgbColor_SeaGreen.htm.md), etc.
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
        - Aurigma.GraphicsMill.RgbColor
 
## 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

- [RgbColor Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_RgbColor.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
