Answer
yellow, black, and black.
Work Step by Step
For the resistance $40\ \Omega$:
The color that corresponds to the first digit, 4, is yellow.
The color that corresponds to the second digit, 0, is black.
The color that corresponds to the zero is black.
So the colors that we are looking for are: yellow, black, and black.