Tools

Colour converter

Convert between hex, rgb() and rgba(), and get FiveM-ready Lua values: a table with 0-255 alpha and a plain argument list for natives and UI calls.

Examples: #FF8000, rgba(255, 128, 0, 0.5), 255, 128, 0, 255.

Runs entirely in your browser. Nothing you type is sent to us.

Hex
#FF8000
Hex with alpha
#FF8000FF
rgb()
rgb(255, 128, 0)
rgba()
rgba(255, 128, 0, 1)
Lua table
{ r = 255, g = 128, b = 0, a = 255 }
Lua arguments
255, 128, 0, 255

Plain lists and Lua tables use FiveM-style alpha (0-255). rgba() uses CSS alpha (0-1). A 3-digit hex such as #F80 repeats each digit (#FF8800).