Dialog Boxes for Text and Background Color

Delphi User's Guide > A Word Processor

This is also done with Common Dialogs. The color value returned from the dialog box is assigned to the BackColor property.