---
title: FxColorGamutAPI_v2
framework: Professional Video Applications
role: symbol
role_heading: Protocol
platforms: [fxplug 4.0+]
path: professional_video_applications/fxcolorgamutapi_v2
---

# FxColorGamutAPI_v2

A protocol that handles plug-in queries to the host for the project’s color gamut.

## Declaration

```swift
protocol FxColorGamutAPI_v2
```

## Mentioned in

Managing color space and gamut in plug-ins

## Overview

Overview The FxColorGamutAPI retrieves the matrices for converting between RGB (in the project’s color gamut) and YCbCr. Use this protocol when your plug-in converts to YCbCr or from color pixels to grayscale. note: This is version 2 of the Color Gamut API and does not require FxTime.

## Topics

### Getting Color Gamut Information

- [colorMatrixFromDesiredRGBToYCbCr()](professional_video_applications/fxcolorgamutapi_v2/colormatrixfromdesiredrgbtoycbcr().md)
- [colorMatrixFromYCbCrToDesiredRGB()](professional_video_applications/fxcolorgamutapi_v2/colormatrixfromycbcrtodesiredrgb().md)
- [colorPrimaries()](professional_video_applications/fxcolorgamutapi_v2/colorprimaries().md)

### Constants

- [FxColorPrimaries](professional_video_applications/fxcolorprimaries.md)

## See Also

### Color

- [Managing color space and gamut in plug-ins](professional-video-applications/managing-color-space-and-gamut-in-plug-ins.md)
