<!--
{
  "documentType" : "article",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/setting-color-properties-for-a-specific-resolution",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Setting color properties for a specific resolution"
}
-->

# Setting color properties for a specific resolution

Choose the proper color property keys for the desired color range.

## Discussion

After specifying the [`AVVideoColorPropertiesKey`](/documentation/AVFoundation/AVVideoColorPropertiesKey), you must specify a color primary, transfer function, and Y’CbCr matrix.

For HD colorimetry, specify:

- [`AVVideoColorPrimaries_ITU_R_709_2`](/documentation/AVFoundation/AVVideoColorPrimaries_ITU_R_709_2)
- [`AVVideoTransferFunction_ITU_R_709_2`](/documentation/AVFoundation/AVVideoTransferFunction_ITU_R_709_2)
- [`AVVideoYCbCrMatrix_ITU_R_709_2`](/documentation/AVFoundation/AVVideoYCbCrMatrix_ITU_R_709_2)

For SD colorimetry, specify:

- [`AVVideoColorPrimaries_SMPTE_C`](/documentation/AVFoundation/AVVideoColorPrimaries_SMPTE_C)
- [`AVVideoTransferFunction_ITU_R_709_2`](/documentation/AVFoundation/AVVideoTransferFunction_ITU_R_709_2)
- [`AVVideoYCbCrMatrix_ITU_R_601_4`](/documentation/AVFoundation/AVVideoYCbCrMatrix_ITU_R_601_4)

For wide gamut HD colorimetry, specify:

- [`AVVideoColorPrimaries_P3_D65`](/documentation/AVFoundation/AVVideoColorPrimaries_P3_D65)
- [`AVVideoTransferFunction_ITU_R_709_2`](/documentation/AVFoundation/AVVideoTransferFunction_ITU_R_709_2)
- [`AVVideoYCbCrMatrix_ITU_R_709_2`](/documentation/AVFoundation/AVVideoYCbCrMatrix_ITU_R_709_2)

If the source and destination color properties differ, AVFoundation matches the color. You must tag the source.

---

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)