You can use hexadecimal numbers to specify an arbitrary color.
example:


Form1.Color := $00DDEEFF ;

where FF - red, EE - green, DD - blue.

If you are more accustomed to ordinary numbers, you can use the RGB function, where each color is specified by a number from 0 to 255.

example :


Form1.Color := RGB( 255 , 238 , 221 );


In addition, you can use text color constants

example:


Form1.Color := clWindowText;
Form1.Color := clRed;


The following table lists the color constants:

Value

Meaning

clBlack

Black

clMaroon

Maroon

clGreen

Green

clOlive

Olive Green

clNavy

Navy Blue

clPurple

Purple

clTeal

clGray

clSilver

Silver

clRed

clLime

Lime Green

clYellow

Yellow

clBlue

clFuchsia

Fuchsia

clAqua

clWhite

White