---
title: cgColorSpace
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscolorspace/cgcolorspace
---

# cgColorSpace

The Core Graphics color-space object that represents a color space equivalent to the color space’s.

## Declaration

```swift
var cgColorSpace: CGColorSpace? { get }
```

## Discussion

Discussion The value of this property is a reference to an Core Graphics color-space object (CGColorSpace) or NULL if the type of color space represented by the receiver cannot be represented by a CGColorSpace object.

## See Also

### Accessing Color Space Data and Attributes

- [colorSpaceModel](appkit/nscolorspace/colorspacemodel.md)
- [NSColorSpace.Model](appkit/nscolorspace/model.md)
- [colorSyncProfile](appkit/nscolorspace/colorsyncprofile.md)
- [iccProfileData](appkit/nscolorspace/iccprofiledata.md)
- [localizedName](appkit/nscolorspace/localizedname.md)
- [numberOfColorComponents](appkit/nscolorspace/numberofcolorcomponents.md)
