Looks like 夕, which is also a pictograph of a moon.
外 and 月 don't sound similar in modern Mandarin due to historical phonetic changes. They were more similar in older Chinese.外 /*[ŋ]ʷˤa[t]-s/ 月 /*[ŋ]ʷat/
Due to historical stylistic changes, this component is less similar to 月 than it was in ancient scripts.