It's a little confusing, but technically RMB (renminbi) is the official name of the currency and CNY (yuan) is the base unit of the currency. Think of it like the difference between USD ("US Dollar") vs "dollar and cents", except there is no fractional yuan equivalent of cents, so it's all just yuan.