# HSVToRGB(float, float, float, bool)

> Convert a set of HSV values to an RGB Color.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Removed.** EditorGUIUtility.HSVToRGB is obsolete. Use Color.HSVToRGB instead
>
> **Upgrade to** [Color.HSVToRGB](/engine/6000.5/script-reference/unityengine/color/hsvtorgb.md)

```csharp
public static Color HSVToRGB(float H, float S, float V, bool hdr)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

| Type                                                          | Description                                                                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [Color](/engine/6000.5/script-reference/unityengine/color.md) | The RGB color calculated from the HSV values passed into the function. The alpha value of the color will be 1. |

### Remarks

All values are in the range 0 - 1.

Additional Resources: RGBToHSV.
