I was looking at this the other day for the 23 on the x100.
The Pentax hood for the limited 43 works with it's 49mm threads.
Pentax has another similar
"Inverted hood for the Q system. It's 40.5mm.
You could get a step ring and use it. It's gotta be a winner to use on the 27.