Intro

The color picker allows users to choose any color.

Color picker

Color picker

Usage

Use the color picker if:

Do not use the color picker if:

Responsiveness

The color picker supports cozy and compact content densities.

Size S

Size S

Size M

Size M

Size L

Size L

Layout

The color picker consists of the following elements:

  • The color picker box for setting lightness and saturation

  • Sliders for setting the hue and transparency (“alpha channel”)

  • Form elements for:

    • Displaying the current and new color settings
    • Setting the color as a hexadecimal value
    • Setting the color as red/green/blue (RGB) value (0 to 255 each) (optional)
    • Setting the color as hue/saturation/lightness (HSL) value (hue: 0 to 360 degrees, saturation: 0% to 100%, lightness: 0% to 100%) (optional)
    • Switching between RGB and HSL values (if applicable)
    • Setting the transparency (“alpha channel”) value of the color (0.00 for full transparency to 1.00 for opaque)

Schematic visualization of the color picker

Schematic visualization of the color picker

Types

The color picker comes in 3 flavors:

  • Simplified: The simplified color picker offers settings for hue, saturation, and lightness, but not for the alpha channel. It shows the current and new color. Text input is only possible for hex values.

'Simplified' color picker

'Simplified' color picker

  • Default: The default color picker allows all settings. It displays input fields either for red / green / blue / alpha or for hue / saturation / lightness / alpha. End users can switch between both sets of input fields.

'Default' color picker

'Default' color picker

  • Large: The large color picker allows all settings and displays all fields at the same time.

'Large' color picker

'Large' color picker

Behavior and Interaction

Guidelines

Resources

Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.

Elements and Controls

Implementation

Visual Design