This is a fairly straightforward achievement, which I earned after about 45mins play. To unlock the achievement, simply play any card which allows you to change the color of the card to be laid down - and make sure you change the color! If the card below yours was yellow, and you select yellow, that will not count towards your target of 40.