The number 871821 (eight hundred seventy-one thousand eight hundred twenty-one) is written in Roman numerals as follows: DCCCLXXIDCCCXXI