---
title: "slint::Rgb8Pixel Struct"
description: "Represents an RGB pixel."
---
```cpp
struct Rgb8Pixel;
```

```cpp
#include <slint.h>
```

Represents an RGB pixel.

## Public Attributes

### `r`

```cpp
uint8_t slint::Rgb8Pixel::r
```

red value (between 0 and 255)

### `g`

```cpp
uint8_t slint::Rgb8Pixel::g
```

green value (between 0 and 255)

### `b`

```cpp
uint8_t slint::Rgb8Pixel::b
```

blue value (between 0 and 255)