How do I convert hex to RGB by hand?
Split the code into three pairs and read each as a number in base 16: the first digit times 16, plus the second. For #1E90FF that is 1×16+14 = 30, 9×16+0 = 144 and 15×16+15 = 255, so rgb(30, 144, 255).
Is RGB more precise than hex?
No. Both give red, green and blue from 0 to 255, hex in base 16 and rgb() in base 10, so the three channels convert exactly both ways. An alpha is written to three decimals in rgba(), which still reads back to the same two hex digits.
What does an eight-digit hex code mean?
The last two digits are the alpha, the opacity, from 00 for clear to FF for solid: #1E90FF80 is that blue at about half opacity. Android writes the alpha first, which is why a code pasted with 0x is read that way.
How do I get the hex code of an rgb() colour?
Paste the rgb() into the same field and copy the HEX line. A bare 255, 136, 0 works too, and so does rgb(255 136 0) with spaces.