# ColorUtility

> A collection of common color functions.

## Definition

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

```csharp
public class ColorUtility
```

## Static Methods

| Method                                                                                               | Description                                                         |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [ToHtmlStringRGB](/engine/6000.0/script-reference/unityengine/colorutility/tohtmlstringrgb.md)       | Returns the color as a hexadecimal string in the format "RRGGBB".   |
| [ToHtmlStringRGBA](/engine/6000.0/script-reference/unityengine/colorutility/tohtmlstringrgba.md)     | Returns the color as a hexadecimal string in the format "RRGGBBAA". |
| [TryParseHtmlString](/engine/6000.0/script-reference/unityengine/colorutility/tryparsehtmlstring.md) | Attempts to convert a html color string.                            |
