---
title: Using color spaces to display HDR content
framework: metal
role: article
role_heading: Article
path: metal/using-color-spaces-to-display-hdr-content
---

# Using color spaces to display HDR content

Use a color space when you don’t need to edit or process the pixel data.

## Overview

Overview If you aren’t editing the content in a linear color space, and simply need to display the content with the correct transfer function, use a color space that includes that transfer function. Create a Metal layer and set its wantsExtendedDynamicRangeContent property to true. Set the color space that matches the color primaries and transfer function of your content. The code below creates a Metal layer for content in the BT.2020 color space using the PQ transfer function:

## See Also

### High dynamic range content

- [Processing HDR images with Metal](metal/processing-hdr-images-with-metal.md)
- [Displaying HDR content in a Metal layer](metal/displaying-hdr-content-in-a-metal-layer.md)
- [Determining support for EDR values](metal/determining-support-for-edr-values.md)
- [Using system tone mapping on video content](metal/using-system-tone-mapping-on-video-content.md)
- [Performing your own tone mapping](metal/performing-your-own-tone-mapping.md)
- [Implementing tone mapping on reference displays](metal/implementing-tone-mapping-on-reference-displays.md)
