# colour_find_rgb

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/colour.c#L58
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-colour_find_rgb/

```c
int colour_find_rgb(u_char r, u_char g, u_char b)
```

## Parameters

- `r` (`u_char`)
- `g` (`u_char`)
- `b` (`u_char`)

## Called by

- [`tty_check_bg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_check_bg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2483)
- [`tty_check_fg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_check_fg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2434)

## Calls

- [`colour_dist_sq`](/en/tmux/3.2a/reference/c-function-colour-c-colour_dist_sq/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/colour.c#L82)
- [`colour_to_6cube`](/en/tmux/3.2a/reference/c-function-colour-c-colour_to_6cube/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/colour.c#L65)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`COLOUR_FLAG_256`](/en/tmux/3.2a/reference/c-define-tmux-h-colour_flag_256/) (constant)
