Color Pickers - Overview
Foundations / Best Practices / UI Elements / Color Pickers – Overview
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:
- Color Palette
- Color Palette Popover
- Color Picker
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
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
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
For complete guidance, see the Color Picker.
Component Usage Guidance
For detailed design guidelines, see the individual pages for each component variant.
Related Links
Guidelines
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)