---
name: "al_color_name"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_color_name"
---

# al\_color\_name(3)

Allegro 5 API

## NAME

al\_color\_name - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_color.h>
  ALLEGRO_COLOR al_color_name(char const *name)
  ```

## DESCRIPTION

Return an [ALLEGRO\_COLOR(3)](/ALLEGRO_COLOR/3.md) with the given name. If the color is not found then black is returned.

See [al\_color\_name\_to\_rgb(3)](/al_color_name_to_rgb/3.md) for the list of names.
