Colours from certain periods do tend to suit the period of the house. A home with lots of period features and large windows have the space to carry off darker more traditional colours, whereas a more modern home (which tend to be smaller) will suit fresher, more modern paint colours. It’s a myth that a space will look bigger painted white, doing this can sometimes give a sterile look rather than a feeling of space.
Certain colours are calming, others are stimulating. Paint colours that replicate nature such as neutrals, pale blues and greens for example tend to have a calming quality and are popular choices for bedrooms. However, there are also vibrant colours in nature and you can always be surprised by a bold colour used somewhere like a bathroom or kitchen.