Hi Dinghui, the word 'right' in 'right now' and 'rightly so' serves different functions.
When we say 'rightly so,' we mean something is correct or somebody did something correct. So in this context, Newton was correct in theorising that different colours are essentially different wavelengths of light.
Another example could be:
A: did you hear she has quit her job?
B: yes, and rightly so- she was always under appreciated by her boss. (She did the right thing quitting her hob because her boss never appreciated her.)