The number 1227 (one thousand two hundred twenty-seven) is written in Roman numerals as follows: MCCXXVII