The number 840027 (eight hundred forty thousand twenty-seven) is written in Roman numerals as follows: DCCCXLXXVII