How hex works
A hex colour like #0A84FF is three pairs of hexadecimal digits: red 0A, green 84, blue FF. Each pair is a number from 0 to 255.
By hand
Each pair is first digit × 16 + second digit, where A–F mean 10–15:
0A= 0 × 16 + 10 = 1084= 8 × 16 + 4 = 132FF= 15 × 16 + 15 = 255
So #0A84FF is rgb(10, 132, 255).
Back to hex
Divide each value by 16: the whole part is the first digit, the remainder the second. 132 ÷ 16 = 8 remainder 4 → 84.
Short hex
#F80 is shorthand for #FF8800: each digit doubles.
Alpha
#0A84FF80 adds a fourth pair for opacity: 80 is 128, about 50%. In CSS that’s rgba(10, 132, 255, 0.5).
On a Mac
NotchMind, which I make, converts colours on its Developer Tools page, and offers Convert Color whenever you copy one. See developer tools in the notch.
NotchMind