# Color32(byte, byte, byte, byte)

> Constructs a new Color32 with given r, g, b, a components.

## Definition

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

```csharp
public Color32(byte r, byte g, byte b, byte a)
```

### Parameters

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

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    Color32 color = new Color32(64, 128, 192, 255);
}
```
