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

[@microsoft/fast-colors](./fast-colors.md) &gt; [rgbToHSV](./fast-colors.rgbtohsv.md)

## rgbToHSV() function

Converts a [ColorRGBA64](./fast-colors.colorrgba64.md) to a [ColorHSV](./fast-colors.colorhsv.md)

<b>Signature:</b>

```typescript
export declare function rgbToHSV(rgb: ColorRGBA64): ColorHSV;
```

## Parameters

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

<b>Returns:</b>

[ColorHSV](./fast-colors.colorhsv.md)

## Remarks

The alpha channel of the input is ignored
