---
id: fast-colors.rgbtoxyz
title: rgbToXYZ() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [rgbToXYZ](./fast-colors.rgbtoxyz.md)

## rgbToXYZ() function

Converts a [ColorRGBA64](./fast-colors.colorrgba64.md) to a [ColorXYZ](./fast-colors.colorxyz.md)

<b>Signature:</b>

```typescript
export declare function rgbToXYZ(rgb: ColorRGBA64): ColorXYZ;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  rgb | [ColorRGBA64](./fast-colors.colorrgba64.md) | the rgb color to convert |

<b>Returns:</b>

[ColorXYZ](./fast-colors.colorxyz.md)

## Remarks

The alpha channel of the input is ignored
