The number 38727 (thirty-eight thousand seven hundred twenty-seven) is written in Roman numerals as follows: XXXVIIIDCCXXVII