The answer to the actual question ("Why do we use things like FF, does the base system 10 compensate for a number like 10?"): These are bits of computer use, that is, 1 or 0.
The entity is similar to what Lee sent and called "positional notation . " In decimal, each position in the number refers to power 10. For example, in number 123, the last position represents 10 ^ 0 - units. The middle position represents 10 ^ 1 - tens. And the first is 10 ^ 2 - hundreds. Thus, the number "123" represents 1 * 100 + 2 * 10 + 3 * 1 = 123.
Binary numbers use the same system. The number 10 (base 2) represents 1 * 2 ^ 1 + 0 * 2 ^ 0 = 2.
If you want to express the decimal number 10 in binary format, you get the number 1010. This means that you need four bits to represent one decimal digit.
But with four bits, you can represent up to 16 different values, not just 10 different values. If you need four bits per digit, you can also use numbers in base 16, not just base 10. That the hexadecimal number comes into play.
Regarding how to convert ARGB values; as written in other answers, converting between binary and hexadecimal is relatively easy (4 binary digits = 1 hexadecimal digit).
Converting between decimal and hexadecimal is more involved, and at least it was easier for me (if I have to do it in my head) to convert the decimal to binary first, and then the binary to hex. Google probably has many practices and algorithms for this.
source share