<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureColorSpace",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@E@AVCaptureColorSpace"
  },
  "title" : "AVCaptureColorSpace"
}
-->

# AVCaptureColorSpace

An enumeration of color spaces a device can support.

```
enum AVCaptureColorSpace
```

## Overview

By default, a capture session automatically enables wide-gamut capture for supported devices and capture workflows.

## Topics

### Color spaces

[`AVCaptureColorSpace.sRGB`](/documentation/AVFoundation/AVCaptureColorSpace/sRGB)

The standard RGB color space.

[`AVCaptureColorSpace.P3_D65`](/documentation/AVFoundation/AVCaptureColorSpace/P3_D65)

The P3 D65 wide color space that uses Illuminant D65 as the white point.

[`AVCaptureColorSpace.HLG_BT2020`](/documentation/AVFoundation/AVCaptureColorSpace/HLG_BT2020)

The BT.2020 wide color space that uses Illuminant D65 as the white point and Hybrid Log-Gamma (HLG) as the transfer function.

[`AVCaptureColorSpace.appleLog`](/documentation/AVFoundation/AVCaptureColorSpace/appleLog)

The Apple Log Color space, which uses BT2020 as the color primaries, and an Apple-defined Log curve as a transfer function.

[`AVCaptureColorSpace.appleLog2`](/documentation/AVFoundation/AVCaptureColorSpace/appleLog2)

The Apple Log 2 Color space, which uses Apple Gamut as the color primaries, and an Apple defined Log curve as a transfer function. When you set this as the active color space on an [`AVCaptureDevice`](/documentation/AVFoundation/AVCaptureDevice), any [`AVCapturePhotoOutput`](/documentation/AVFoundation/AVCapturePhotoOutput) or [`AVCaptureStillImageOutput`](/documentation/AVFoundation/AVCaptureStillImageOutput) connected to the same [`AVCaptureDevice`](/documentation/AVFoundation/AVCaptureDevice) is made inactive (its [`isActive`](/documentation/AVFoundation/AVCaptureConnection/isActive) property returns `false`).

### Initializers

[`init(rawValue:)`](/documentation/AVFoundation/AVCaptureColorSpace/init(rawValue:))



---

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)