So, I'm creating an editor for a PS2 football game in C #. And the "color system" of the game is RGB, and so far everything was going very well, because I was encountering with "normal" Hex codes in the game how to choose the color R: 255 G: 255 B: 255 in Hex gets R: FF G: FF B: FF, and then just make the exchange of values via Hex , but I came across a "system" that left me lost even because I am a mere beginner rsrs which is as follows: RGB color options in this part of the game goes only until 31, R: 0 to 31 G: 0 to 31 B: 0 to 31 and the Hex code "generated" when choosing the color in the game is only 2 bytes (including the "slot" for the color exchange via Hex is only 2 bytes same) and not 3 as it should for example: in the game I choose R: 245 B: 130 G: 05 in Hex is F58205 and in the options of RGB 31 is thus R: 0 G: 0 B: 0 and the Hex code stays 0080, So ... do you have any idea how this works? a form exists because the guy was able to do that old program is not true rsrs