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

# colorSpaceName

Returns the name of the color space corresponding to the passed window depth.

## Declaration

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

## Discussion

Discussion Returns the color space name for the specified depth. For example, the returned color space name can be calibratedRGB, or deviceCMYK.

## See Also

### Working with Window Depths

- [bitsPerPixel](appkit/nswindow/depth/bitsperpixel.md)
- [bitsPerSample](appkit/nswindow/depth/bitspersample.md)
- [numberOfColorComponents](appkit/nscolorspacename/numberofcolorcomponents.md)
- [isPlanar](appkit/nswindow/depth/isplanar.md)
- [canRepresent(_:)](appkit/nswindow/canrepresent(_:).md)
