<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/Depth/colorSpaceName",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@F@NSColorSpaceFromDepth"
  },
  "title" : "colorSpaceName"
}
-->

# colorSpaceName

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

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

## Discussion

Returns the color space name for the specified `depth`. For example, the returned color space name can be [`calibratedRGB`](/documentation/AppKit/NSColorSpaceName/calibratedRGB), or [`deviceCMYK`](/documentation/AppKit/NSColorSpaceName/deviceCMYK).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)