Use the --color-selection option.

# Color Selection Dialog

Use the --color-selection option to create a color selection dialog.

The color selection dialog supports the following options:

# --color=VALUE

Set the initial color.(ex: #FF0000)

# --show-palette

Show the palette.

The following example script shows how to create a color selection dialog:

#!/bin/sh

COLOR=`zenity --color-selection --show-palette`

case $? in 0) echo "You selected $COLOR.";; 1) echo "No color selected.";; -1) echo "An unexpected error has occurred.";; esac

# Color Selection Dialog Example

Zenity
color selection dialog example