FiveM HUD Color Palette Generator

Generate harmonious color palettes for your FiveM HUD. Export as CSS variables or Lua config.

Generated Palette
CSS Variables
Lua Config

What this tool is for

A HUD looks amateurish when its colours were picked one at a time. Colour theory fixes that: pick one base tone and derive the rest from fixed angles on the colour wheel. This generator does the maths and hands you the result as CSS variables for your NUI and as a Lua table for a config file, so the same palette is used on both sides.

How to use it

  1. Step 1:

    Set your base colour, usually the accent colour your server already uses in its logo.

  2. Step 2:

    Choose a scheme. Analogous stays calm and is right for status bars, complementary gives you a strong signal colour for warnings.

  3. Step 3:

    Check the shades against your background. HUD text sits over the game image, so contrast matters more than on a website.

  4. Step 4:

    Copy the palette as CSS variables for the NUI side, or as a Lua table for the config.

Frequently asked questions

Which scheme fits a FiveM HUD?

Analogous or monochromatic for anything permanent, because low contrast between elements keeps the HUD calm. Reserve one complementary colour for alerts. A triadic scheme on a permanent HUD makes the screen restless.

Why does my colour look different in game than in the browser?

The game applies its own post processing and the HUD is drawn over a moving image. Mid tones lose contrast badly at night. Always check a palette against a dark scene, not against the editor background.

How do I use these colours in Lua?

Native drawing functions take RGBA as four numbers from 0 to 255, not hex strings. The Lua output already gives you that form, so you can pass it straight to DrawRect or SetTextColour.

Should the colours live in the config or in the CSS?

Put them in the config and pass them into the NUI once at startup. Server owners then change one file instead of editing stylesheets, and the Lua drawing code and the NUI cannot drift apart.