In CSS you can add 2 more hex digits to an RGB hex code to access 256 possible opacity levels, like background-color: #RRGGBBAA.
It's difficult to verify, but it seems that browsers also accept opacity values with arbitrary decimal precision in both percentages and real numbers from 0 to 1. I would imagine those get rounded at least to the closest value from 0 to 256.