In a kitchen rack, six boxes are kept one on top of another. The red box is just above the blue box. The purple box is between the black and the green box. The yellow box is between the red and the black box. If the boxes are numbered from 1 to 6 from top to bottom, then the difference between the position of the green and the red box is D. What is the value of D^3/2?