The number 5127 (five thousand one hundred twenty-seven) is written in Roman numerals as follows: VCXXVII