# Color32.ToColor

## Overload 1

```csharp
Color ToColor()
```

Convert this object to [Color](/api/Color).

### Returns

`Color`: The converted color struct.

## Overload 2

```csharp
Color ToColor(bool srgb)
```

Convert this object to [Color](/api/Color).

### Parameters

- `srgb` (`bool`): If true we'll convert from the srgb color space to linear

### Returns

`Color`: The converted color struct.

Declared in [Color32](/api/Color32).
Assembly: `Sandbox.System`.
