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
- Step 1:
Pick a colour from the field, or type an exact HEX or RGB value if you already have the brand colour.
- Step 2:
Read off the format you need. HEX and CSS go into the NUI, the RGB triple goes into native calls.
- Step 3:
For vehicles, switch to the paint palette. Those are index numbers, not RGB, and only the listed values exist.
- 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.
Related tools
HEX to RGB Converter for FiveM Development
Bidirectional HEX to RGB converter for FiveM development. Get Lua code, CSS output, HSL values, and preset vehicle colors instantly.
FiveM HUD Color Palette Generator
Generate harmonious color palettes for FiveM HUDs. Complementary, analogous, triadic schemes. Export as CSS variables or Lua config with RGB color codes.
GTA V / FiveM Vehicle Spawn Names Database
Searchable database of all GTA V vehicle spawn names for FiveM. Filter by category, click to copy spawn codes. Super, Sports, Muscle, SUV and more.