Both Hainanese kaya and Nyonya kaya use sugar, eggs, and coconut milk. Hainanese kaya uses brown sugar for its flavour and has a golden brown colour. Nyonya kaya uses pandan for flavour and has a light green colour.