Skip to content

10% off shop orders, applied at checkout

RPScriptsRPScripts

FiveM Color Codes

Type a chat message or a notification, click codes into it and see how FiveM colors it before you put it in a script.

Free browser tool · No sign-up

Color your text.

Chat reads ^0–^9, ^#hex colors, ~r~ ~g~ ~b~ ~y~ ~w~ and the ^* ^_ ^~ ^= ^r styles.

Insert a code
Preview[Police] Officer Miller: stay in your car

Runs in your browser. Nothing is sent to a server.

Chat color codes (^)

CodeColorHex
^0White#ffffff
^1Red#ff4444
^2Green#99cc00
^3Yellow#ffbb33
^4Blue#0099cc
^5Light blue#33b5e5
^6Purple#aa66cc
^7Default (white)#ffffff
^8Dark red#cc0000
^9Pink#cc0068
^*Bold
^_Underline
^~Strikethrough
^=Underline and strikethrough
^rReset styles

GTA text color codes (~)

CodeHUD colorHex
~r~HUD_COLOUR_RED#e03232
~g~HUD_COLOUR_GREEN#72cc72
~b~HUD_COLOUR_BLUE#5db6e5
~y~HUD_COLOUR_YELLOW#f0c850
~o~HUD_COLOUR_ORANGE#ff8555
~p~HUD_COLOUR_PURPLE#8466e2
~q~HUD_COLOUR_PINK#cb3694
~f~HUD_COLOUR_FRIENDLY#5db6e5
~d~HUD_COLOUR_BLUEDARK#2f5c73
~c~HUD_COLOUR_MENU_GREY#8c8c8c
~t~HUD_COLOUR_MENU_GREY#8c8c8c
~m~HUD_COLOUR_MID_GREY_MP#646464
~l~HUD_COLOUR_BLACK#000000
~w~HUD_COLOUR_WHITE#f0f0f0
~s~HUD_COLOUR_WHITE#f0f0f0
~h~Bold on/off
~italic~Italic on/off
~n~Line break

Where each code works

Chat messages

The default chat resource colors messages sent with chat:addMessage and chat commands. Besides ^0–^9 it accepts any hex color as ^#RRGGBB, for example ^#ff8800. A style such as ^* lasts until ^r.

Notifications and on-screen text

Text drawn by the game (feed notifications, help text, subtitles, 3D text) uses ~ tags. ~s~ returns to the default color, ~h~ switches bold on and off and ~n~ starts a new line. Tags such as ~INPUT_CONTEXT~ show a key and stay as typed in this preview.

Server name in the server list

Since 21 October 2026 the server name, project name and tags are set in the Cfx Portal, not in server.cfg. Cfx has not documented which color codes the Portal keeps, so check the server list after you save. The server.cfg builder writes the rest of your config.

More free tools

All free tools →