Is #D1D4E0 the yellow colour that matches the bottom of your gradient? If so then that is fine.
If not then you need to change the hex code to a colour that matches the bottom of your gradient.
P.S. the colour probably won't appear in the box as the gradient will override the colour as the gradient image is big enough to fill the box.
To be honest the best advice is to just test and see.