Skip to content

GMod Lua Color Picker

Pick a color visually and get the Color(r, g, b, a) Lua code for Garry's Mod instantly.

Click to open the system color picker. Alpha is set separately below.

255 = fully opaque, 0 = fully transparent

#

Enter a 3 or 6 character hex code to sync RGB.

Preview

Output
Color(57, 111, 226, 255)

Usage in GMod Lua

  1. 1Use the swatch or type R/G/B/A/Hex values to choose a color.
  2. 2The output updates live. Copy at any time.
  3. 3Paste the Color() call anywhere Lua expects a color (surface colors, draw.SimpleText, etc.).
  4. 4Alpha 255 = fully opaque; lower values add transparency.

Need a server to develop on? Spin one up free for 24 hours, no card required.

See GMod hosting →

Picking colors and need a hand with the syntax?

Ask in our Discord - we help with hosting questions whether or not you host with us.