FiveM Color Picker

Pick colors for your FiveM scripts with RGB, HEX, HSL values. Copy ready-to-use Lua code.

Color Picker

FiveM Lua Code

SetVehicleCustomPrimaryColour(vehicle, 45, 212, 191)
SetVehicleCustomSecondaryColour(vehicle, 45, 212, 191)
-- Using HEX in NUI/HTML
local hexColor = "#2dd4bf"

Manual RGB Input

FiveM Vehicle Color Palette

What this tool is for

FiveM asks for colours in three different shapes depending on where you are: hex in your NUI stylesheet, RGB triples in native draw calls, and index numbers for vehicle paint. This picker shows all of them for the same colour at once, plus the stock GTA V vehicle palette, so you can move between the NUI side and the Lua side without a second conversion step.

How to use it

  1. Step 1:

    Pick a colour from the field, or type an exact HEX or RGB value if you already have the brand colour.

  2. Step 2:

    Read off the format you need. HEX and CSS go into the NUI, the RGB triple goes into native calls.

  3. Step 3:

    For vehicles, switch to the paint palette. Those are index numbers, not RGB, and only the listed values exist.

  4. Step 4:

    Copy the ready made Lua line, for example the SetVehicleColours call with primary and secondary paint.

Frequently asked questions

Why can I not use a hex colour for a vehicle?

Stock vehicle paint is an index into a fixed table of factory colours, so only those exist. Free colours need SetVehicleCustomPrimaryColour, which does take an RGB triple but loses the metallic and matte finish of the stock paints.

What is the difference between primary and secondary colour?

Primary is the body, secondary is used for trim, stripes and parts of the interior depending on the model. Many models barely show the secondary colour, so check on the actual vehicle before you rely on it.

How do I get an alpha channel?

Native draw calls take alpha as a fourth value from 0 to 255, where 255 is opaque. On the CSS side use rgba with a value from 0 to 1. The two scales are different, which is a common source of invisible HUD elements.

Do colours look the same in the NUI and in native draw calls?

Not exactly. NUI is a browser layer composited on top, while native draws go through the game renderer and pick up its tone mapping. The same RGB value can read slightly darker in a native draw.