---
title: NSColorSpaceName
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nscolorspacename
---

# NSColorSpaceName

Constants that specify color space names.

## Declaration

```swift
struct NSColorSpaceName
```

## Topics

### Color Space Names

- [calibratedRGB](appkit/nscolorspacename/calibratedrgb.md)
- [calibratedWhite](appkit/nscolorspacename/calibratedwhite.md)
- [custom](appkit/nscolorspacename/custom.md)
- [deviceCMYK](appkit/nscolorspacename/devicecmyk.md)
- [deviceRGB](appkit/nscolorspacename/devicergb.md)
- [deviceWhite](appkit/nscolorspacename/devicewhite.md)
- [named](appkit/nscolorspacename/named.md)
- [pattern](appkit/nscolorspacename/pattern.md)

### Getting the Number of Components

- [numberOfColorComponents](appkit/nscolorspacename/numberofcolorcomponents.md)

### Initializers

- [init(rawValue:)](appkit/nscolorspacename/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Working with the color space

- [type](appkit/nscolor/type.md)
- [usingType(_:)](appkit/nscolor/usingtype(_:).md)
- [NSColor.ColorType](appkit/nscolor/colortype.md)
- [colorSpace](appkit/nscolor/colorspace.md)
