# ToHtmlStringRGBA

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

## Definition

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

## ToHtmlStringRGBA(Color)

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

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

### Parameters

**** (\[Color]\(/engine/6000.7/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.7/script-reference/unityengine/colorutility/tohtmlstringrgb.md).

## ToHtmlStringRGBA(Color)

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

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

### Parameters

**** (\[Color]\(/engine/6000.7/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.7/script-reference/unityengine/colorutility/tohtmlstringrgb.md).
