# ToHtmlStringRGBA(Color)

> Returns the color as a hexadecimal string in the format "RRGGBBAA".

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static string ToHtmlStringRGBA(Color color)
```

### Parameters

**** (\[Color]\(/engine/6000.0/script-reference/unityengine/color)): The color to be converted.

### Returns

| Type                                                           | Description                                |
| -------------------------------------------------------------- | ------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Hexadecimal string representing the color. |

### Remarks

Additional Resources: [ColorUtility.ToHtmlStringRGB](/engine/6000.0/script-reference/unityengine/colorutility/tohtmlstringrgb.md).
