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
Color(57, 111, 226, 255)
Usage in GMod Lua
- 1Use the swatch or type R/G/B/A/Hex values to choose a color.
- 2The output updates live. Copy at any time.
- 3Paste the Color() call anywhere Lua expects a color (surface colors, draw.SimpleText, etc.).
- 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 →Want your own Garry's Mod server?
Workshop tools, full file access, DDoS protection, and a free trial. Try it free for 24 hours, no credit card required.
Halloween treat: 20% off your first payment with code HALLOWEEN2026 at checkout.
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.