{"name":"BIS_fnc_HEXtoRGB","operator":null,"title":"BIS fnc HEXtoRGB","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_HEXtoRGB","revid":378164,"updated":"2026-03-02T12:35:10Z","groups":["Math"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Convert RGBA hexcode color into RGBA array format.","syntaxes":[{"syntax":"[hexString] call BIS_fnc_HEXtoRGB","since":null,"effect":null,"exec":null,"params":[{"name":"hexString","type":"String","optional":false,"default":null,"description":"string representing **4 bytes** of HEX color","types":["String"],"since":null,"text":"hexString: String - string representing **4 bytes** of HEX color"}],"returns":{"type":"Array format Color (RGBA)","types":["Array","Color"],"description":"array of 4 numbers in range 0..1","text":"Array format Color (RGBA) - array of **4** numbers in range 0..1"}}],"examples":[{"text":"```sqf\n[\"025D00FF\"] call BIS_fnc_HEXtoRGB; // [0.007843, 0.843138, 0, 1]\n```","code":["[\"025D00FF\"] call BIS_fnc_HEXtoRGB; // [0.007843, 0.843138, 0, 1]"]},{"text":"Usually HEX code is represented as 3 bytes without alpha, so you can add it yourself:\n\n```sqf\n_hexstring = \"025D00\";\n[_hexString + \"FF\"] call BIS_fnc_HEXtoRGB; // add alpha 4th byte\n```","code":["_hexstring = \"025D00\";\n[_hexString + \"FF\"] call BIS_fnc_HEXtoRGB; // add alpha 4th byte"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Color","BIS_fnc_colorConfigToRGBA","BIS_fnc_colorRGBAtoHTML","BIS_fnc_colorRGBtoHTML","BIS_fnc_colorRGBAtoTexture"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Math","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}