The number 27821 (twenty-seven thousand eight hundred twenty-one) is written in Roman numerals as follows: XXVIIDCCCXXI