<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImageOption/colorSpace",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:@kCIImageColorSpace"
  },
  "title" : "colorSpace"
}
-->

# colorSpace

The key for a color space.

```
static let colorSpace: CIImageOption
```

## Discussion

For more information on this data type see <doc://com.apple.documentation/documentation/CoreGraphics/CGColorSpace>. Typically you use this option when you need to load an elevation, mask, normal vector, or RAW sensor data directly from a file without color correcting it. This constant specifies to override Core Image, which, by default, assumes that data is in GenericRGB.

The value you supply for this dictionary key must be a <doc://com.apple.documentation/documentation/CoreGraphics/CGColorSpace> data type. If a value for this key isn’t supplied, the image’s [`colorSpace`](/documentation/CoreImage/CIImage/colorSpace) dictionary are populated automatically by calling <doc://com.apple.documentation/documentation/ImageIO/CGImageSourceCopyPropertiesAtIndex(_:_:_:)>. To request that Core Image perform no color management, specify the <doc://com.apple.documentation/documentation/Foundation/NSNull> object as the value for this key. Use this option for images that don’t contain color data (such as elevation maps, normal vector maps, and sampled function tables).

---

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)