White light contains a range of visible wavelengths. A coloured filter transmits some wavelengths more readily than others, while an opaque object’s observed colour depends on the incident light and what it reflects.
What causes dispersion? Refractive index varying with wavelength.
Why does a star twinkle? Changing atmospheric refraction alters the received light from its nearly point-like image.