# implicit operator Color32

> Color32 can be implicitly converted to and from Color.

## Definition

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

## implicit operator Color32(Color3)

Color32 can be implicitly converted to and from [Color](/engine/6000.0/script-reference/unityengine/color.md).

```csharp
public static implicit operator Color32(Color c)
```

### Parameters

**** (\[Color]\(/engine/6000.0/script-reference/unityengine/color)):&#x20;

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Color32](/engine/6000.0/script-reference/unityengine/color32.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Color32 color = new Color(0.5f, 1f, 0.5f, 1f);
    }
}
```

## implicit operator Color(Colo)

Color32 can be implicitly converted to and from [Color](/engine/6000.0/script-reference/unityengine/color.md).

```csharp
public static implicit operator Color(Color32 c)
```

### Parameters

**** (\[Color32]\(/engine/6000.0/script-reference/unityengine/color32)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [Color](/engine/6000.0/script-reference/unityengine/color.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Color color = new Color32(128, 255, 128, 255);
    }
}
```
