{"name":"BIS_fnc_HEXtoRGB","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Convert RGBA hexcode color into RGBA array format.","syntaxes":[{"syntax":"[hexString] call BIS_fnc_HEXtoRGB","params":[{"name":"hexString","type":"String","description":"string representing **4 bytes** of HEX color","type_expr":"String"}],"returns":{"type":"Array format Color (RGBA)","types":["Array","Color"],"type_expr":"Color","description":"array of 4 numbers in range 0..1","text":"Array format Color (RGBA) - array of **4** numbers in range 0..1"}}],"examples":[{"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"]}],"see_also":["Color","BIS_fnc_colorConfigToRGBA","BIS_fnc_colorRGBAtoHTML","BIS_fnc_colorRGBtoHTML","BIS_fnc_colorRGBAtoTexture"]}