#Pyth, 20 19 bytes
Pyth, 20 19 bytes
%"#%06x"-t^8 8itz16
###Explanation
Explanation
z
is the inputtz
removes the#
itz16
parses as a hexadecimal numbert^8 8
calculates 88 - 1-t^8 8itz16
calculates 88 - 1 - input%"#%06x"-t^2 24itz16
formats it into a zero-padded 6-character hex string and adds the#