Color Pickers - Overview

Foundations / Best Practices / UI Elements / Color Pickers – Overview
information
icon
This guideline now covers both SAPUI5 and SAP Web Components.
manual
Learn more.

Intro

Color pickers are UI components used to select colors. They support both predefined color selection and custom color input.

In the SAP Design System for Web, color selection is supported by the following components:

Each component supports a different level of customization and interaction. Use this overview to choose the appropriate component for your use case.

Variants

Color Palette

A UI component for selecting predefined colors.

  • Use when: Users need to select a color from a predefined palette.
  • Behavior: Displays up to 15 predefined colors and supports color selection.
  • Example: Color palette displaying 15 predefined colors.

Color palette showing 15 predefined color swatches arranged in 3 rows.

Color palette

For complete guidance, see the Color Palette.

Color Palette Popover

A popover for selecting predefined colors or creating custom colors.

  • Use when: Users need to both select colors from a predefined set, or create their own.
  • Behavior: Supports selecting a default color, a predefined color, a custom color, or one of up to 5 recent colors.
  • Example: Color palette popover showing a selected color and its appearance in recently used colors.

Color palette popover showing a selected color, a Default Color section, a More Colors link, and recently used color swatches.

Color palette popover

For complete guidance, see the Color Palette Popover.

Color Picker

A UI component for creating custom colors.

  • Use when: Users need to define their own colors.
  • Behavior: Supports full color customization with RGBA and HSLA input modes, including transparency.
  • Example: Color picker popover with selected blue hue through the color picker circle, hue and transparency sliders, hex code, and RGBA inputs.

Color picker showing a selected blue color, hue and transparency sliders, a hex color value field, and RGBA input fields.

Color picker

For complete guidance, see the Color Picker.

Component Usage Guidance

<div> <div>Component</div> <div>Use when...</div> <div>Behavior</div> <div>Example</div> </div> <div> <div><strong>Color Palette</strong></div> <div>Selecting colors.</div> <div>Displays a set of predefined colors.</div> <div>Selecting the color light sea green.</div> </div> <div> <div><strong>Color Palette Popover</strong></div> <div>Selecting a default color, predefined color, or custom color.</div> <div>Supports selecting a default or predefined color, creating a new one, or selecting from recent colors.</div> <div>Selecting light sea green from recently used colors.</div> </div></div> </div> <div> <div><strong>Color Picker</strong></div> <div>Creating custom colors.</div> <div>Supports full color customization with RGB(A) and HSL(A) inputs and transparency.</div> <div>Selecting a blue hue and adding transparency to it.

For detailed design guidelines, see the individual pages for each component variant.

Guidelines

Components
Color Palette
Color Palette Popover
Color Picker

Implementation

SAPUI5
Color Palette (samples)
Color Palette (API reference)
Color Palette Popover (samples)
Color Palette Popover (API reference)
Color Picker (samples)
Color Picker (API reference)