Ajusting colors to fit the pattern