---
title: "Color.ColorSpace Property "
canonical: https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Color_ColorSpace.htm
product: "Graphics Mill"
---

# Color.ColorSpace Property 
 
Gets a color space of the color.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public virtual ColorSpace ColorSpace { get; }
```
 
### Property Value
The [ColorSpace](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorSpace.htm.md) of the color.
 
## Remarks
 Each class derived from the [Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md) represents its own color space. It means that if, for example, this property returns [Rgb](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorSpace.htm.md), you can cast this [Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md) variable to [RgbColor](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_RgbColor.htm.md) class. However casting to derived classes is considered as bad style from object-oriented point of view, so it is recommended to use it only if it is necessary indeed.
   
## See Also

### Reference

- [Color Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
