<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageRGBPrimaries",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@S@vImageRGBPrimaries"
  },
  "title" : "vImageRGBPrimaries"
}
-->

# vImageRGBPrimaries

A representation of the chromaticity of primaries that define a color space.

```
struct vImageRGBPrimaries
```

## Overview

The `x` and `y` values define the chromaticity of each color primary RGB and the white point according to the CIE 1931 color space. For example, the following code defines the RGB primaries for ITU-R BT.709-5:

```swift
var rgbPrimaries = vImageRGBPrimaries(
    red_x: 0.64,
    green_x: 0.3,
    blue_x: 0.15,
    white_x: 0.3127,
    red_y: 0.33,
    green_y: 0.6,
    blue_y: 0.06,
    white_y: 0.329)
```

## Topics

### Initializers

[`init(red_x:green_x:blue_x:white_x:red_y:green_y:blue_y:white_y:)`](/documentation/Accelerate/vImageRGBPrimaries/init(red_x:green_x:blue_x:white_x:red_y:green_y:blue_y:white_y:))

Creates a structure that represents the specified chromaticity of primaries defining a color space.

[`init()`](/documentation/Accelerate/vImageRGBPrimaries/init())

Creates an empty RGB primaries structure.

### Color primary properties

[`red_x`](/documentation/Accelerate/vImageRGBPrimaries/red_x)

The red `x` value according to the CIE 1931 color space.

[`green_x`](/documentation/Accelerate/vImageRGBPrimaries/green_x)

The green `x` value according to the CIE 1931 color space.

[`blue_x`](/documentation/Accelerate/vImageRGBPrimaries/blue_x)

The blue `x` value according to the CIE 1931 color space.

[`white_x`](/documentation/Accelerate/vImageRGBPrimaries/white_x)

The white point `x` value according to the CIE 1931 color space.

[`red_y`](/documentation/Accelerate/vImageRGBPrimaries/red_y)

The red `y` value according to the CIE 1931 color space.

[`green_y`](/documentation/Accelerate/vImageRGBPrimaries/green_y)

The green_ _`y` value according to the CIE 1931 color space.

[`blue_y`](/documentation/Accelerate/vImageRGBPrimaries/blue_y)

The blue `y` value according to the CIE 1931 color space.

[`white_y`](/documentation/Accelerate/vImageRGBPrimaries/white_y)

The white point `y` value according to the CIE 1931 color space.



---

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)