If you replace the actual bit value as a percentage of the max bit value, then you work bitdepth independant. Some interfaces of edit programs do use the percentage value. Neutral middle gray is (50%,50%,50%) in any bit depth.
In general (x-bit value/x-bit max. value)=(y-bit value/y-bit max. value)
George