From 髪 (かみ) (kami) + 留 (と)め (tome). The tome changes to dome as an instance of rendaku (連濁).
髪留め (hiragana かみどめ, rōmaji kamidome)