# Color.ToColor32

```csharp
Color32 ToColor32(bool srgb = False)
```

Convert to a Color32 (a 32 bit color value)

### Parameters

- `srgb` (`bool`), default `False`: If true we'll convert to the srgb color space

### Returns

`Color32`

Declared in [Color](/api/Color).
Assembly: `Sandbox.System`.
