1. A two-dimensional code generation device, comprising: a white point determiner to determine a white point in an environment to output a two-dimensional code; a threshold acquirer to acquire a threshold of lightness used by a reading device for reading multiple cells in binary, the threshold being represented in a device-independent color space that is based on the white point determined by the white point determiner, and the threshold varying depending on lightness that corresponds to a white color determined by the white point; and a two-dimensional code generator to generate the two-dimensional code expressing information by a distribution pattern of multiple cell dots formed by coloring the multiple cells in a color of lightness equal to or higher than the threshold acquired by the threshold acquirer and in a color of lightness lower than the threshold.