---
title: colorSpaceName
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsimagerep/colorspacename
---

# colorSpaceName

The name of the color space used by the image data.

## Declaration

```swift
var colorSpaceName: NSColorSpaceName { get set }
```

## Discussion

Discussion By default, an NSImageRep object’s color space name is NSCalibratedRGBColorSpace. Color space names are defined as part of the NSColor class, in NSGraphics.h. The following are valid color space names: NSCalibratedWhiteColorSpace NSCalibratedBlackColorSpace NSCalibratedRGBColorSpace NSDeviceWhiteColorSpace NSDeviceBlackColorSpace NSDeviceRGBColorSpace NSDeviceCMYKColorSpace NSNamedColorSpace NSCustomColorSpace

## See Also

### Specifying Information About the Representation

- [bitsPerSample](appkit/nsimagerep/bitspersample.md)
- [hasAlpha](appkit/nsimagerep/hasalpha.md)
- [isOpaque](appkit/nsimagerep/isopaque.md)
- [pixelsHigh](appkit/nsimagerep/pixelshigh.md)
- [pixelsWide](appkit/nsimagerep/pixelswide.md)
- [layoutDirection](appkit/nsimagerep/layoutdirection.md)
- [Device-Specific Value](appkit/device-specific-value.md)
