# PRIM_COLOR

*LSL constant*

```lsl
integer PRIM_COLOR = 18;
```

Prim parameter to get or set the Blinn-Phong color and opacity of a face.

integer face – face number or ALL_SIDES
vector color – color in RGB <R, G, B> (<0.0, 0.0, 0.0> = black, <1.0, 1.0, 1.0> = white)
float alpha – from 0.0 (clear) to 1.0 (solid) (0.0 <= alpha <= 1.0)

Constant groups: [PrimParam](/constants/groups/PrimParam/), [PrimParamGet](/constants/groups/PrimParamGet/)

Used to get or set the [Blinn-Phong](https://wiki.secondlife.com/wiki/PBR_Materials#nomenclature-changes) color and alpha of a prim's face.

## Helper functions

| Color | Code |
| --- | --- |
| NAVY | `<0.000, 0.122, 0.247>` |
| BLUE | `<0.000, 0.455, 0.851>` |
| AQUA | `<0.498, 0.859, 1.000>` |
| TEAL | `<0.224, 0.800, 0.800>` |
| OLIVE | `<0.239, 0.600, 0.439>` |
| GREEN | `<0.180, 0.800, 0.251>` |
| LIME | `<0.004, 1.000, 0.439>` |
| YELLOW | `<1.000, 0.863, 0.000>` |
| ORANGE | `<1.000, 0.522, 0.106>` |
| RED | `<1.000, 0.255, 0.212>` |
| MAROON | `<0.522, 0.078, 0.294>` |
| FUCHSIA | `<0.941, 0.071, 0.745>` |
| PURPLE | `<0.694, 0.051, 0.788>` |
| WHITE | `<1.000, 1.000, 1.000>` |
| SILVER | `<0.867, 0.867, 0.867>` |
| GRAY | `<0.667, 0.667, 0.667>` |
| BLACK | `<0.067, 0.067, 0.067>` |

## See also

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)

### Events

- [changed](/events/changed/)

---

*Source: [PRIM COLOR](https://wiki.secondlife.com/wiki/PRIM_COLOR) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM COLOR (revision 1216215, 2024-02-17) and Template:LSL PrimitiveParam Categorize (revision 1180644, 2013-08-09), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PRIM_COLOR/
