# UI colors

> **Note:** The documented colors are part of the Siemens branding and cannot be used for none Siemens applications. The color definitions are not part of the OSS package. Element comes with a default theme that is not part of the Siemens branding. The default theme is not documented.

Colors are a foundational aspect of any user interface. Maintaining consistent and engaging UIs requires specific color usage guidelines. To address this challenge, our system uses a combination of semantic naming and a layer of abstraction in both our designs and code.

Application of the [color palette](<https://element.siemens.io/fundamentals/colors/color-palette/>) brings a unified and consistent experience to our products and interfaces. The theme includes a variety of solid colors and gradients to ensure that a consistent look is carried through any application. For example, action, base, and status colors are all strategically used to communicate different actions and content throughout the experience.

Element supports two modes: `light` and `dark`. Color variables use the same semantic naming in both modes.

For a detailed explanation on how dark mode is implemented and how to implement dark mode for applications and custom components, see [here](<https://element.siemens.io/architecture/theming/>).

## Tokens

Color tokens describe the semantic usage of primitives in a given context. More specifically, semantic colors act as an intermediary level of specificity, between the raw value of colors in the base palette and the usage of those colors in specific components. There can be various levels of semantic hierarchies, although we should strive to keep these as simple as possible.

Naming colors semantically has two benefits:

1. It helps designers and developers decide what color to use.
2. It makes our color system more efficient and flexible.

The following categories are defined in our system:

### Background

| Token Name | Type | dark (default) | light | Description |
| --- | --- | --- | --- | --- |
| **0**<br>si.sys.color.background.0 | color | \#000028<br>{si.ref.color.main.deep-blue.900} | \#F5F5F5<br>{si.ref.color.main.sand.200} | The absolute bottom layer, the literal background of the application. |
| **1**<br>si.sys.color.background.1 | color | \#23233C<br>{si.ref.color.main.deep-blue.800} | \#FFFFFF<br>{si.ref.color.main.brand.white} | The primary surface layer where most UI components sit. E.g., cards, side panels, containers that rest above background-0 |
| **2**<br>si.sys.color.background.2 | color | \#12122E<br>{si.ref.color.main.deep-blue.875} | \#F0F0EF<br>{si.ref.color.main.sand.300} | For elements that are placed above background-1, implying a higher visual elevation. |
| **3**<br>si.sys.color.background.3 | color | \#2D2D45<br>{si.ref.color.main.deep-blue.775} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Used for temporary UI layers that sit above all base surfaces and partially cover the interface below. Is usually paired with drop-shadows. E.g., toast notification, popovers, dropdowns, modals. |
| **4**<br>si.sys.color.background.4 | color | \#161632<br>{si.ref.color.main.deep-blue.850} | \#FAFAFA<br>{si.ref.color.main.sand.100} | Used to layer in any of the other bases, when a stronger distinction is needed, especially to highlight a container. |
| **accent**<br>si.sys.color.background.accent | color | \#00CCCC<br>{si.ref.color.main.brand.interactive-coral} | \#006B80<br>{si.ref.color.main.interactive-blue.700} | Background color for accent elements. |
| **accent-active**<br>si.sys.color.background.accent-active | color | \#00E5AA<br>{si.ref.color.main.bold-green.500} | \#004F60<br>{si.ref.color.main.interactive-blue.800} | Background color for active states on accent elements. |
| **accent-hover**<br>si.sys.color.background.accent-hover | color | \#00FFB9<br>{si.ref.color.main.bold-green.400} | \#005159<br>{si.ref.color.main.brand.teal} | Background color for hover states on accent elements. |
| **accent-secondary**<br>si.sys.color.background.accent-secondary | color | rgba(0, 204, 204, 0)<br>rgba({si.ref.color.main.brand.interactive-coral}, 0) | rgba(0, 204, 204, 0)<br>rgba({si.ref.color.main.brand.interactive-coral}, 0) | Background color for secondary accent elements. |
| **accent-secondary-active**<br>si.sys.color.background.accent-secondary-active | color | \#001F39<br>{si.ref.color.main.bold-green.900} | \#C2FFEE<br>{si.ref.color.main.bold-green.200} | Background color for active states on secondary accent elements. |
| **accent-secondary-hover**<br>si.sys.color.background.accent-secondary-hover | color | \#00333E<br>{si.ref.color.main.interactive-blue.900} | \#D1FFF2<br>{si.ref.color.main.bold-green.100} | Background color for hover states on secondary accent elements. |
| **active**<br>si.sys.color.background.active | color | \#40405E<br>{si.ref.color.main.deep-blue.700} | \#E0E0DE<br>{si.ref.color.main.sand.500} | Background color for active states. |
| **caution**<br>si.sys.color.background.caution | color | \#FFD732<br>{si.ref.color.main.yellow.300} | \#EDBF00<br>{si.ref.color.main.yellow.500} | Background color for emphasis on caution states. |
| **caution-active**<br>si.sys.color.background.caution-active | color | \#BA9600<br>{si.ref.color.main.yellow.600} | \#FFD732<br>{si.ref.color.main.yellow.300} | Background color for active states on caution elements. |
| **caution-hover**<br>si.sys.color.background.caution-hover | color | \#EDBF00<br>{si.ref.color.main.yellow.500} | \#FFD00F<br>{si.ref.color.main.yellow.400} | Background color for hover states on caution elements. |
| **caution-subtle**<br>si.sys.color.background.caution-subtle | color | \#322501<br>{si.ref.color.main.yellow.900} | \#FFF2BA<br>{si.ref.color.main.yellow.100} | Background color for subtle caution states. |
| **critical**<br>si.sys.color.background.critical | color | \#A733BC<br>{si.ref.color.data.orchid.500} | \#A733BC<br>{si.ref.color.data.orchid.500} | Background color for emphasis on critical states. |
| **critical-active**<br>si.sys.color.background.critical-active | color | \#52245C<br>{si.ref.color.data.orchid.900} | \#52245C<br>{si.ref.color.data.orchid.900} | Background color for active states on critical elements. |
| **critical-hover**<br>si.sys.color.background.critical-hover | color | \#740089<br>{si.ref.color.data.orchid.700} | \#740089<br>{si.ref.color.data.orchid.700} | Background color for hover states on critical elements. |
| **critical-subtle**<br>si.sys.color.background.critical-subtle | color | \#52245C<br>{si.ref.color.data.orchid.900} | \#EDD6F2<br>{si.ref.color.data.orchid.100} | Background color for subtle critical states. |
| **danger**<br>si.sys.color.background.danger | color | \#D72339<br>{si.ref.color.main.red.500} | \#D72339<br>{si.ref.color.main.red.500} | Background color for emphasis on danger states. |
| **danger-active**<br>si.sys.color.background.danger-active | color | \#A60823<br>{si.ref.color.main.red.700} | \#A60823<br>{si.ref.color.main.red.700} | Background color for active states on danger. |
| **danger-hover**<br>si.sys.color.background.danger-hover | color | \#BF162E<br>{si.ref.color.main.red.600} | \#BF162E<br>{si.ref.color.main.red.600} | Background color for hover states on danger. |
| **danger-secondary**<br>si.sys.color.background.danger-secondary | color | rgba(215, 35, 57, 0)<br>rgba({si.ref.color.main.red.500}, 0) | rgba(215, 35, 57, 0)<br>rgba({si.ref.color.main.red.500}, 0) | Background color for secondary states on danger. |
| **danger-subtle**<br>si.sys.color.background.danger-subtle | color | \#42000C<br>{si.ref.color.main.red.900} | \#FCCCD7<br>{si.ref.color.main.red.100} | Background color for subtle danger states. |
| **disabled**<br>si.sys.color.background.disabled | color | \#40405E<br>{si.ref.color.main.deep-blue.700} | \#B3B3BE<br>{si.ref.color.main.deep-blue.300} | Background color for the disabled state for specific components, like buttons and other controls |
| **hover**<br>si.sys.color.background.hover | color | \#333353<br>{si.ref.color.main.deep-blue.750} | \#EDEDED<br>{si.ref.color.main.sand.400} | Background color for hover states. |
| **information**<br>si.sys.color.background.information | color | \#206ED9<br>{si.ref.color.main.blue.500} | \#206ED9<br>{si.ref.color.main.blue.500} | Background color for emphasis on information states. |
| **information-active**<br>si.sys.color.background.information-active | color | \#1E5299<br>{si.ref.color.main.blue.700} | \#1E5299<br>{si.ref.color.main.blue.700} | Background color for active states on information elements. |
| **information-hover**<br>si.sys.color.background.information-hover | color | \#1F60B9<br>{si.ref.color.main.blue.600} | \#1F60B9<br>{si.ref.color.main.blue.600} | Background color for hover states on information elements. |
| **information-subtle**<br>si.sys.color.background.information-subtle | color | \#193966<br>{si.ref.color.main.blue.900} | \#D2E2F7<br>{si.ref.color.main.blue.100} | Background color for subtle information states. |
| **inverse**<br>si.sys.color.background.inverse | color | \#FFFFFF<br>{si.ref.color.main.brand.white} | \#000028<br>{si.ref.color.main.deep-blue.900} | Background color for inverse states. |
| **neutral**<br>si.sys.color.background.neutral | color | \#B3B3BE<br>{si.ref.color.main.deep-blue.300} | \#66667E<br>{si.ref.color.main.deep-blue.600} | Background color for neutral or unknown states. |
| **neutral-active**<br>si.sys.color.background.neutral-active | color | \#7D8099<br>{si.ref.color.main.deep-blue.500} | \#40405E<br>{si.ref.color.main.deep-blue.700} | Background color for active states on neutral or unknown states. |
| **neutral-hover**<br>si.sys.color.background.neutral-hover | color | \#9999A9<br>{si.ref.color.main.deep-blue.400} | \#4C4C68<br>{si.ref.color.main.deep-blue.650} | Background color for hover states on neutral or unknown states. |
| **success**<br>si.sys.color.background.success | color | \#28BF66<br>{si.ref.color.main.green.500} | \#1C703F<br>{si.ref.color.main.green.700} | Background color for emphasis on success states. |
| **success-active**<br>si.sys.color.background.success-active | color | \#72E6A3<br>{si.ref.color.main.green.300} | \#12331F<br>{si.ref.color.main.green.900} | Background color for active states on success elements. |
| **success-hover**<br>si.sys.color.background.success-hover | color | \#4DD384<br>{si.ref.color.main.green.400} | \#17522F<br>{si.ref.color.main.green.800} | Background color for hover states on success elements. |
| **success-subtle**<br>si.sys.color.background.success-subtle | color | \#12331F<br>{si.ref.color.main.green.900} | \#C1F2D6<br>{si.ref.color.main.green.100} | Background color for subtle success states. |
| **warning**<br>si.sys.color.background.warning | color | \#FF9000<br>{si.ref.color.main.orange.400} | \#C75300<br>{si.ref.color.main.orange.600} | Background color for emphasis on warning states. |
| **warning-active**<br>si.sys.color.background.warning-active | color | \#C75300<br>{si.ref.color.main.orange.600} | \#8F3700<br>{si.ref.color.main.orange.800} | Background color for active states on warning. |
| **warning-hover**<br>si.sys.color.background.warning-hover | color | \#E37200<br>{si.ref.color.main.orange.500} | \#A84100<br>{si.ref.color.main.orange.700} | Background color for hover states on warning. |
| **warning-secondary**<br>si.sys.color.background.warning-secondary | color | rgba(199, 83, 0, 0)<br>rgba({si.ref.color.main.orange.600}, 0) | rgba(199, 83, 0, 0)<br>rgba({si.ref.color.main.orange.600}, 0) | Background color for active states on warning. |
| **warning-subtle**<br>si.sys.color.background.warning-subtle | color | \#421A00<br>{si.ref.color.main.orange.900} | \#FEE1CC<br>{si.ref.color.main.orange.100} | Background color for subtle warning states. |

### Border

| Token Name | Type | dark (default) | light | Description |
| --- | --- | --- | --- | --- |
| **1**<br>si.sys.color.border.1 | color | \#FFFFFF<br>{si.ref.color.main.brand.white} | \#000028<br>{si.ref.color.main.deep-blue.900} | Primary border color for high emphasis. |
| **2**<br>si.sys.color.border.2 | color | \#9999A9<br>{si.ref.color.main.deep-blue.400} | \#66667E<br>{si.ref.color.main.deep-blue.600} | Secondary border color for default borders. |
| **3**<br>si.sys.color.border.3 | color | \#66667E<br>{si.ref.color.main.deep-blue.600} | \#9999A9<br>{si.ref.color.main.deep-blue.400} | Tertiary border color for ghost buttons and chips borders. |
| **4**<br>si.sys.color.border.4 | color | \#4C4C68<br>{si.ref.color.main.deep-blue.650} | \#E5E5E9<br>{si.ref.color.main.deep-blue.100} | Very subtle border color for dividers, input disabled, outline for cards, status toggle. |
| **accent**<br>si.sys.color.border.accent | color | \#00CCCC<br>{si.ref.color.main.brand.interactive-coral} | \#006B80<br>{si.ref.color.main.interactive-blue.700} | Border color for accent elements. |
| **accent-active**<br>si.sys.color.border.accent-active | color | \#00E5AA<br>{si.ref.color.main.bold-green.500} | \#004F60<br>{si.ref.color.main.interactive-blue.800} | Border color for active states for accent secondary. |
| **accent-hover**<br>si.sys.color.border.accent-hover | color | \#00FFB9<br>{si.ref.color.main.bold-green.400} | \#005159<br>{si.ref.color.main.brand.teal} | Border color for hover states for accent secondary. |
| **caution**<br>si.sys.color.border.caution | color | \#FFD00F<br>{si.ref.color.main.yellow.400} | \#EDBF00<br>{si.ref.color.main.yellow.500} | Border color for caution states. |
| **critical**<br>si.sys.color.border.critical | color | \#A733BC<br>{si.ref.color.data.orchid.500} | \#A733BC<br>{si.ref.color.data.orchid.500} | Border color for critical states. |
| **danger**<br>si.sys.color.border.danger | color | \#D72339<br>{si.ref.color.main.red.500} | \#D72339<br>{si.ref.color.main.red.500} | Border color for danger states. |
| **danger-secondary**<br>si.sys.color.border.danger-secondary | color | \#FF8E9C<br>{si.ref.color.main.red.300} | \#BF162E<br>{si.ref.color.main.red.600} | Border color for danger secondary states. |
| **disabled**<br>si.sys.color.border.disabled | color | \#40405E<br>{si.ref.color.main.deep-blue.700} | \#B3B3BE<br>{si.ref.color.main.deep-blue.300} | Border color for disabled interactive controls, such as buttons and inputs. |
| **information**<br>si.sys.color.border.information | color | \#206ED9<br>{si.ref.color.main.blue.500} | \#206ED9<br>{si.ref.color.main.blue.500} | Border color for information states. |
| **inverse**<br>si.sys.color.border.inverse | color | \#000028<br>{si.ref.color.main.deep-blue.900} | \#F5F5F5<br>{si.ref.color.main.sand.200} | Border color for inverse elements. |
| **neutral**<br>si.sys.color.border.neutral | color | \#B3B3BE<br>{si.ref.color.main.deep-blue.300} | \#66667E<br>{si.ref.color.main.deep-blue.600} | Border color for neutral borders. |
| **success**<br>si.sys.color.border.success | color | \#28BF66<br>{si.ref.color.main.green.500} | \#1C703F<br>{si.ref.color.main.green.700} | Border color for success states. |
| **warning**<br>si.sys.color.border.warning | color | \#FF9000<br>{si.ref.color.main.orange.400} | \#C75300<br>{si.ref.color.main.orange.600} | Border color for warning states. |
| **warning-secondary**<br>si.sys.color.border.warning-secondary | color | \#FFA525<br>{si.ref.color.main.orange.300} | \#A84100<br>{si.ref.color.main.orange.700} | Border color for warning secondary states. |

### Text

| Token Name | Type | dark (default) | light | Description |
| --- | --- | --- | --- | --- |
| **accent**<br>si.sys.color.text.accent | color | \#00CCCC<br>{si.ref.color.main.brand.interactive-coral} | \#006B80<br>{si.ref.color.main.interactive-blue.700} | Accent text color for interactive elements. |
| **accent-active**<br>si.sys.color.text.accent-active | color | \#00E5AA<br>{si.ref.color.main.bold-green.500} | \#004F60<br>{si.ref.color.main.interactive-blue.800} | Accent text color for active states on interactive elements. |
| **accent-hover**<br>si.sys.color.text.accent-hover | color | \#00FFB9<br>{si.ref.color.main.bold-green.400} | \#005159<br>{si.ref.color.main.brand.teal} | Accent text color for hover states on interactive elements. |
| **caution**<br>si.sys.color.text.caution | color | \#FFD732<br>{si.ref.color.main.yellow.300} | \#4D3901<br>{si.ref.color.main.yellow.800} | Text color for caution states. |
| **critical**<br>si.sys.color.text.critical | color | \#D59CDE<br>{si.ref.color.data.orchid.200} | \#740089<br>{si.ref.color.data.orchid.700} | Text color for critical states. |
| **danger**<br>si.sys.color.text.danger | color | \#FF8E9C<br>{si.ref.color.main.red.300} | \#A60823<br>{si.ref.color.main.red.700} | Text color for danger states. |
| **disabled**<br>si.sys.color.text.disabled | color | \#66667E<br>{si.ref.color.main.deep-blue.600} | \#9999A9<br>{si.ref.color.main.deep-blue.400} | Text color for disabled states. |
| **information**<br>si.sys.color.text.information | color | \#A9C7F1<br>{si.ref.color.main.blue.200} | \#1E5299<br>{si.ref.color.main.blue.700} | Text color for information states. |
| **inverse**<br>si.sys.color.text.inverse | color | \#000028<br>{si.ref.color.main.deep-blue.900} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Text color for use on dark backgrounds for contrast. |
| **on-accent**<br>si.sys.color.text.on-accent | color | \#000028<br>{si.ref.color.main.deep-blue.900} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Text color for use on accent backgrounds. |
| **on-accent-secondary**<br>si.sys.color.text.on-accent-secondary | color | \#00CCCC<br>{si.ref.color.main.brand.interactive-coral} | \#006B80<br>{si.ref.color.main.interactive-blue.700} | Text color for use on accent secondary backgrounds. |
| **on-accent-secondary-active**<br>si.sys.color.text.on-accent-secondary-active | color | \#00E5AA<br>{si.ref.color.main.bold-green.500} | \#004F60<br>{si.ref.color.main.interactive-blue.800} | Text color for active states on secondary accent backgrounds. |
| **on-accent-secondary-hover**<br>si.sys.color.text.on-accent-secondary-hover | color | \#00FFB9<br>{si.ref.color.main.bold-green.400} | \#005159<br>{si.ref.color.main.brand.teal} | Text color for hover states on secondary accent backgrounds. |
| **on-caution**<br>si.sys.color.text.on-caution | color | \#000028<br>{si.ref.color.main.deep-blue.900} | \#000028<br>{si.ref.color.main.deep-blue.900} | Text color for use on caution backgrounds. |
| **on-critical**<br>si.sys.color.text.on-critical | color | \#FFFFFF<br>{si.ref.color.main.brand.white} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Text color for use on critical backgrounds. |
| **on-danger**<br>si.sys.color.text.on-danger | color | \#FFFFFF<br>{si.ref.color.main.brand.white} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Text color for use on danger backgrounds. |
| **on-danger-secondary**<br>si.sys.color.text.on-danger-secondary | color | \#FF8E9C<br>{si.ref.color.main.red.300} | \#BF162E<br>{si.ref.color.main.red.600} | Text color for use on danger secondary backgrounds. |
| **on-disabled**<br>si.sys.color.text.on-disabled | color | \#000028<br>{si.ref.color.main.deep-blue.900} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Text color for text on disabled backgrounds. |
| **on-information**<br>si.sys.color.text.on-information | color | \#FFFFFF<br>{si.ref.color.main.brand.white} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Text color for use on information backgrounds. |
| **on-neutral**<br>si.sys.color.text.on-neutral | color | \#000028<br>{si.ref.color.main.deep-blue.900} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Text color for text on neutral backgrounds. |
| **on-success**<br>si.sys.color.text.on-success | color | \#000028<br>{si.ref.color.main.deep-blue.900} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Text color for use on success backgrounds. |
| **on-warning**<br>si.sys.color.text.on-warning | color | \#000028<br>{si.ref.color.main.deep-blue.900} | \#FFFFFF<br>{si.ref.color.main.brand.white} | Text color for use on warning backgrounds. |
| **on-warning-secondary**<br>si.sys.color.text.on-warning-secondary | color | \#FFA525<br>{si.ref.color.main.orange.300} | \#A84100<br>{si.ref.color.main.orange.700} | Text color for use on warning secondary backgrounds. |
| **primary**<br>si.sys.color.text.primary | color | \#FFFFFF<br>{si.ref.color.main.brand.white} | \#000028<br>{si.ref.color.main.deep-blue.900} | Primary text color for high emphasis text. |
| **secondary**<br>si.sys.color.text.secondary | color | \#B3B3BE<br>{si.ref.color.main.deep-blue.300} | \#4C4C68<br>{si.ref.color.main.deep-blue.650} | Secondary text color for medium emphasis text. |
| **success**<br>si.sys.color.text.success | color | \#72E6A3<br>{si.ref.color.main.green.300} | \#1C703F<br>{si.ref.color.main.green.700} | Text color for success states. |
| **warning**<br>si.sys.color.text.warning | color | \#FFA525<br>{si.ref.color.main.orange.300} | \#A84100<br>{si.ref.color.main.orange.700} | Text color for warning states. |

### Effects

| Token Name | Type | dark (default) | light | Description |
| --- | --- | --- | --- | --- |
| **backdrop**<br>si.sys.color.effects.backdrop | color | rgba(0, 0, 40, 0.65)<br>rgba({si.ref.color.main.deep-blue.900}, 0.65) | rgba(0, 0, 0, 0.3)<br>rgba({si.ref.color.main.brand.black}, 0.3) | \- |
| **disable-opacity**<br>si.sys.color.effects.disable-opacity | number | 0.5 | 0.5 | Opacity value to disable non-interactive content (images, badges, etc.) that can't use disabled color tokens. |
| **focus**<br>si.sys.color.effects.focus | color | \#199FFF<br>{si.ref.color.main.brand.focus} | \#008FF5<br>{si.ref.color.main.brand.focus-light} | Reserved for focus ring, for keyboard navigation. |
| **logo**<br>si.sys.color.effects.logo | color | \#FFFFFF<br>{si.ref.color.main.brand.white} | \#009999<br>{si.ref.color.main.brand.petrol} | \- |

### Code

| Token Name | Type | dark (default) | light | Description |
| --- | --- | --- | --- | --- |
| **1**<br>si.sys.color.code.1 | color | \#E5E5E9<br>{si.ref.color.main.deep-blue.100} | \#000028<br>{si.ref.color.main.deep-blue.900} | Code color default. |
| **2**<br>si.sys.color.code.2 | color | \#97C7FF<br>{si.ref.color.data.royal-blue.200} | \#1C4680<br>{si.ref.color.main.blue.800} | Code color for operators and keywords. |
| **3**<br>si.sys.color.code.3 | color | \#80DFED<br>{si.ref.color.data.blue.200} | \#00557C<br>{si.ref.color.data.blue.900} | Code color for constant / boolean. |
| **4**<br>si.sys.color.code.4 | color | \#FFBC66<br>{si.ref.color.data.orange.200} | \#A84100<br>{si.ref.color.main.orange.700} | Code color for variables. |
| **5**<br>si.sys.color.code.5 | color | \#FFE784<br>{si.ref.color.data.yellow.200} | \#876D00<br>{si.ref.color.main.yellow.700} | Code color for functions. |
| **6**<br>si.sys.color.code.6 | color | \#80EBAC<br>{si.ref.color.data.green.200} | \#1C703F<br>{si.ref.color.main.green.700} | Code color for strings. |
| **7**<br>si.sys.color.code.7 | color | \#D59CDE<br>{si.ref.color.data.orchid.200} | \#A733BC<br>{si.ref.color.data.orchid.500} | Code colors for numbers. |
| **8**<br>si.sys.color.code.8 | color | \#AAAA96<br>{si.ref.color.data.sand.500} | \#5E5E4A<br>{si.ref.color.data.sand.900} | Code color for comments. |
| **9**<br>si.sys.color.code.9 | color | \#9999A9<br>{si.ref.color.data.deep-blue.400} | \#4C4C68<br>{si.ref.color.data.deep-blue.700} | Code colors for punctuation. |
| **10**<br>si.sys.color.code.10 | color | \#A68DFF<br>{si.ref.color.data.purple.400} | \#553BA3<br>{si.ref.color.data.purple.900} | Code color for tags. |
| **11**<br>si.sys.color.code.11 | color | \#85E9D2<br>{si.ref.color.data.turquoise.100} | \#1A747D<br>{si.ref.color.data.turquoise.700} | Color for typescript. |
| **12**<br>si.sys.color.code.12 | color | \#FF8E9C<br>{si.ref.color.main.red.300} | \#A60823<br>{si.ref.color.main.red.700} | Code color for errors. |

### UI (deprecated)

UI colors are used on structural properties and icons and provide good contrast when used over any background.

| Value light | Value dark | Token | Use | Associated color - light | Associated color - dark |
| --- | --- | --- | --- | --- | --- |
| `#006b80` | `#00cccc` | `$element-ui-0` | Logo, selected (active) elements | `$si-ref-color-main-interactive-blue-700` | `$si-ref-color-main-brand-interactive-coral` |
| `#005159` | `#00ffb9` | `$element-ui-0-hover` | Selected/active (ui-0) + hover | `$si-ref-color-main-brand-teal` | `$si-ref-color-main-bold-green-400` |
| `#000028` | `#ffffff` | `$element-ui-1` | Primary icons | `$si-ref-color-main-deep-blue-900` | `$si-ref-color-main-brand-white` |
| `#66667e` | `#9999a9` | `$element-ui-2` | Secondary icons | `$si-ref-color-main-deep-blue-600` | `$si-ref-color-main-deep-blue-400` |
| `#9999a9` | `#66667e` | `$element-ui-3` | Disabled | `$si-ref-color-main-deep-blue-400` | `$si-ref-color-main-deep-blue-600` |
| `#e5e5e9` | `#4c4c68` | `$element-ui-4` | Borders | `$si-ref-color-main-deep-blue-100` | `$si-ref-color-main-deep-blue-650` |
| `#ffffff` | `#23233c` | `$element-ui-5` | Inverse | `$si-ref-color-main-brand-white` | `$si-ref-color-main-deep-blue-800` |
| `#000000` | `#000000` | `$element-ui-6` | Shadows | `$si-ref-color-main-brand-black` | `$si-ref-color-main-brand-black` |

### Base (deprecated)

Base colors are used as backgrounds of containers.

| Value light | Value dark | Token | Use | Associated color - light | Associated color - dark |
| --- | --- | --- | --- | --- | --- |
| `#f5f5f5` | `#000028` | `$element-base-0` | Page background | `$si-ref-color-main-sand-200` | `$si-ref-color-main-deep-blue-900` |
| `#ffffff` | `#23233c` | `$element-base-1` | Header, navigation, card, table, tree, menu background | `$si-ref-color-main-brand-white` | `$si-ref-color-main-deep-blue-800` |
| `#ededed` | `#333353` | `$element-base-1-hover` | Hover on base-1 backgrounds, like table, tree, or menu | `$si-ref-color-main-sand-400` | `$si-ref-color-main-deep-blue-750` |
| `#e0e0de` | `#40405e` | `$element-base-1-selected` | Selected on base-1 backgrounds, like table, tree, or menu | `$si-ref-color-main-sand-500` | `$si-ref-color-main-deep-blue-700` |
| `#ffffff` | `#000028` | `$element-base-2` | Page background with higher contrast pages in dark mode | `$si-ref-color-main-brand-white` | `$si-ref-color-main-deep-blue-900` |
| `#ffffff` | `#2d2d45` | `$element-base-3` | Background that works on base-0 and base-1 with elevation | `$si-ref-color-main-brand-white` | `$si-ref-color-main-deep-blue-775` |
| `#f0f0ef` | `#12122e` | `$element-base-4` | Elements placed above base-1, implying a higher elevation | `$si-ref-color-main-sand-300` | `$si-ref-color-main-deep-blue-875` |
| `#d2e2f7` | `#193966` | `$element-base-information` | Informational component background for e.g. badges | `$si-ref-color-main-blue-100` | `$si-ref-color-main-blue-900` |
| `#c1f2d6` | `#12331f` | `$element-base-success` | Success component background for e.g. badges | `$si-ref-color-main-green-100` | `$si-ref-color-main-green-900` |
| `#fff2ba` | `#322501` | `$element-base-caution` | Caution component background for e.g. badges | `$si-ref-color-main-yellow-100` | `$si-ref-color-main-yellow-900` |
| `#fee1cc` | `#421a00` | `$element-base-warning` | Warning component background for e.g. badges | `$si-ref-color-main-orange-100` | `$si-ref-color-main-orange-900` |
| `#fcccd7` | `#42000c` | `$element-base-danger` | Danger component background for e.g. badges | `$si-ref-color-main-red-100` | `$si-ref-color-main-red-900` |
| `#edd6f2` | `#a733bc` | `$element-base-critical` | Critical component background for e.g. status | `$si-ref-color-data-orchid-100` | `$si-ref-color-data-orchid-900` |
| `#0000004D` | `#000000B3` | `$element-base-translucent-1` | Translucent, e.g. backdrop | `rgba($si-ref-color-main-brand-black, 0.3)` | `rgba($si-ref-color-main-brand-black, 0.7)` |
| `#000028E2` | `#FFFFFFE2` | `$element-base-translucent-2` | Slightly translucent background, e.g. toasts | `rgba($si-ref-color-main-deep-blue-900, 0.88)` | `rgba($si-ref-color-main-brand-white, 0.88)` |

### Actions (deprecated)

Action colors are used to indicate actions that users can perform.

| Value light | Value dark | Token | Use | Associated color - light | Associated color - dark |
| --- | --- | --- | --- | --- | --- |
| `#006b80` | `#00cccc` | `$element-action-primary` | Primary interaction | `$si-ref-color-main-interactive-blue-700` | `$si-ref-color-main-brand-interactive-coral` |
| `#005159` | `#00ffb9` | `$element-action-primary-hover` | Primary action on hover | `$si-ref-color-main-brand-teal` | `$si-ref-color-main-bold-green-400` |
| `#ffffff` | `#000028` | `$element-action-primary-text` | Primary text color | `$si-ref-color-main-brand-white` | `$si-ref-color-main-deep-blue-900` |
| `#FFFFFF00` | `#FFFFFF00` | `$element-action-secondary` | Secondary interaction | `transparent` | `transparent` |
| `#d1fff2` | `#193966` | `$element-action-secondary-hover` | Secondary interaction on hover | `$si-ref-color-main-bold-green-100` | `$si-ref-color-main-interactive-blue-900` |
| `#006b80` | `#00cccc` | `$element-action-secondary-text` | Secondary text color | `$si-ref-color-main-interactive-blue-700` | `$si-ref-color-main-brand-interactive-coral` |
| `#196269` | `#00ffb9` | `$element-action-secondary-text-hover` | Secondary text hover color | `$si-ref-color-main-brand-teal-90` | `$si-ref-color-main-bold-green-400` |
| `#006b80` | `#00cccc` | `$element-action-secondary-border` | Secondary border color | `$si-ref-color-main-interactive-blue-700` | `$si-ref-color-main-brand-interactive-coral` |
| `#196269` | `#00ffb9` | `$element-action-secondary-border-hover` | Secondary border hover color | `$si-ref-color-main-brand-teal-90` | `$si-ref-color-main-bold-green-400` |
| `#a84100` | `#ffa525` | `$element-action-secondary-warning` | Secondary warning text/border | `$si-ref-color-main-orange-700` | `$si-ref-color-main-orange-300` |
| `#d72339` | `#ff8e9c` | `$element-action-secondary-danger` | Secondary danger text/border | `$si-ref-color-main-red-500` | `$si-ref-color-main-red-300` |
| `#c75300` | `#ff9000` | `$element-action-warning` | Warning | `$si-ref-color-main-orange-600` | `$si-ref-color-main-orange-400` |
| `#a84100` | `#e37200` | `$element-action-warning-hover` | Warning action on hover | `$si-ref-color-main-orange-700` | `$si-ref-color-main-orange-500` |
| `#ffffff` | `#000028` | `$element-action-warning-text` | Warning text color | `$si-ref-color-main-brand-white` | `$si-ref-color-main-deep-blue-900` |
| `#d72339` | `#d72339` | `$element-action-danger` | Danger | `$si-ref-color-main-red-500` | `$si-ref-color-main-red-500` |
| `#bf162e` | `#bf162e` | `$element-action-danger-hover` | Danger action on hover | `$si-ref-color-main-red-600` | `$si-ref-color-main-red-600` |
| `#ffffff` | `#ffffff` | `$element-action-danger-text` | Danger text color | `$si-ref-color-main-brand-white` | `$si-ref-color-main-brand-white` |
| `#199fff` | `#199fff` | `$element-focus-default` | Default focus shadow color | `$si-ref-color-main-brand-focus` | `$si-ref-color-main-brand-focus` |

### Text (deprecated)

Similarly, categories for typography colors are also defined in this system.

| Value light | Value dark | Token | Use | Associated color - light | Associated color - dark |
| --- | --- | --- | --- | --- | --- |
| `#000028` | `#ffffff` | `$element-text-primary` | Primary | `$si-ref-color-main-deep-blue-900` | `$si-ref-color-main-brand-white` |
| `#4c4c68` | `#b3b3be` | `$element-text-secondary` | Secondary | `$si-ref-color-main-deep-blue-650` | `$si-ref-color-main-deep-blue-300` |
| `#7d8099` | `#66667e` | `$element-text-disabled` | Disabled | `$si-ref-color-main-deep-blue-500` | `$si-ref-color-main-deep-blue-600` |
| `#ffffff` | `#000028` | `$element-text-inverse` | Inverse | `$si-ref-color-main-brand-white` | `$si-ref-color-main-deep-blue-900` |
| `#006b80` | `#00cccc` | `$element-text-active` | Active | `$si-ref-color-main-interactive-blue-700` | `$si-ref-color-main-brand-interactive-coral` |
| `#1e5299` | `#a9c7f1` | `$element-text-information` | Informational | `$si-ref-color-main-blue-700` | `$si-ref-color-main-blue-200` |
| `#1c703f` | `#72e6a3` | `$element-text-success` | Success | `$si-ref-color-main-green-700` | `$si-ref-color-main-green-300` |
| `#876d00` | `#ffd732` | `$element-text-caution` | Caution | `$si-ref-color-main-yellow-700` | `$si-ref-color-main-yellow-300` |
| `#a84100` | `#ffa525` | `$element-text-warning` | Warning | `$si-ref-color-main-orange-700` | `$si-ref-color-main-orange-300` |
| `#a60823` | `#ff8e9c` | `$element-text-danger` | Danger | `$si-ref-color-main-red-700` | `$si-ref-color-main-red-300` |
| `#a733bc` | `#edd6f2` | `$element-text-critical` | Critical | `$si-ref-color-data-orchid-500` | `$si-ref-color-data-orchid-100` |

### Status (deprecated)

Status colors are used to describe and/or report on the status of different things.

| Value light | Value dark | Token | Use | Associated color - light | Associated color - dark |
| --- | --- | --- | --- | --- | --- |
| `#206ed9` | `#206ed9` | `$element-status-information` | Informational | `$si-ref-color-main-blue-500` | `$si-ref-color-main-blue-500` |
| `#ffffff` | `#ffffff` | `$element-status-information-contrast` | Information contrast for e.g. composite icons | `$si-ref-color-main-brand-white` | `$si-ref-color-main-brand-white` |
| `#1c703f` | `#28bf66` | `$element-status-success` | Success | `$si-ref-color-main-green-700` | `$si-ref-color-main-green-500` |
| `#ffffff` | `#000028` | `$element-status-success-contrast` | Success contrast for e.g. composite icons | `$si-ref-color-main-brand-white` | `$si-ref-color-main-deep-blue-900` |
| `#edbf00` | `#ffd732` | `$element-status-caution` | Caution | `$si-ref-color-main-yellow-500` | `$si-ref-color-main-yellow-300` |
| `#000028` | `#000028` | `$element-status-caution-contrast` | Caution contrast for e.g. composite icons | `$si-ref-color-main-deep-blue-900` | `$si-ref-color-main-deep-blue-900` |
| `#c75300` | `#ff9000` | `$element-status-warning` | Warning | `$si-ref-color-main-orange-600` | `$si-ref-color-main-orange-400` |
| `#ffffff` | `#000028` | `$element-status-warning-contrast` | Warning contrast for e.g. composite icons | `$si-ref-color-main-brand-white` | `$si-ref-color-main-deep-blue-900` |
| `#d72339` | `#d72339` | `$element-status-danger` | Danger | `$si-ref-color-main-red-500` | `$si-ref-color-main-red-500` |
| `#ffffff` | `#ffffff` | `$element-status-danger-contrast` | Danger contrast for e.g. composite icons | `$si-ref-color-main-brand-white` | `$si-ref-color-main-brand-white` |
| `#a733bc` | `#a733bc` | `$element-status-critical` | Critical | `$si-ref-color-data-orchid-500` | `$si-ref-color-data-orchid-500` |
| `#ffffff` | `#ffffff` | `$element-status-critical-contrast` | Critical contrast for e.g. composite icons | `$si-ref-color-main-brand-white` | `$si-ref-color-main-brand-white` |

## Code

Colors can be consumed within applications either by system color token (*e.g. `$si-sys-color-background-accent`*) or reference color token (*e.g. `$si-ref-color-main-interactive-blue-700`*). It is recommended to use system color tokens whenever possible to reduce the impact on an application if the color system is updated. Use reference color tokens if a design specification specifically requires a palette value.

### Contextual colors

The contextual colors represent the primary colors of each specific use-case and are based on the system color tokens. They can be consumed directly using Element's [color utility classes](<https://element.siemens.io/fundamentals/styles/colors/>).

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';

@Component({
  selector: 'app-sample',
  templateUrl: './color-utils.html',
  host: { class: 'p-5' }
})
export class SampleComponent {}
```

Template:

```html
<table class="table">
  <colgroup>
    <col style="width: 36ch" />
    <col />
  </colgroup>
  <thead>
    <tr>
      <th scope="col">Color utility</th>
      <th scope="col">Preview</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">background-0</th>
      <td class="background-0"></td>
    </tr>
    <tr>
      <th scope="row">background-1</th>
      <td class="background-1"></td>
    </tr>
    <tr>
      <th scope="row">background-2</th>
      <td class="background-2"></td>
    </tr>
    <tr>
      <th scope="row">background-3</th>
      <td class="background-3"></td>
    </tr>
    <tr>
      <th scope="row">background-4</th>
      <td class="background-4"></td>
    </tr>
    <tr>
      <th scope="row">background-accent</th>
      <td class="background-accent"></td>
    </tr>
    <tr>
      <th scope="row">background-accent-active</th>
      <td class="background-accent-active"></td>
    </tr>
    <tr>
      <th scope="row">background-accent-hover</th>
      <td class="background-accent-hover"></td>
    </tr>
    <tr>
      <th scope="row">background-accent-secondary</th>
      <td class="background-accent-secondary"></td>
    </tr>
    <tr>
      <th scope="row">background-accent-secondary-active</th>
      <td class="background-accent-secondary-active"></td>
    </tr>
    <tr>
      <th scope="row">background-accent-secondary-hover</th>
      <td class="background-accent-secondary-hover"></td>
    </tr>
    <tr>
      <th scope="row">background-caution</th>
      <td class="background-caution"></td>
    </tr>
    <tr>
      <th scope="row">background-caution-active</th>
      <td class="background-caution-active"></td>
    </tr>
    <tr>
      <th scope="row">background-caution-hover</th>
      <td class="background-caution-hover"></td>
    </tr>
    <tr>
      <th scope="row">background-caution-subtle</th>
      <td class="background-caution-subtle"></td>
    </tr>
    <tr>
      <th scope="row">background-critical</th>
      <td class="background-critical"></td>
    </tr>
    <tr>
      <th scope="row">background-critical-active</th>
      <td class="background-critical-active"></td>
    </tr>
    <tr>
      <th scope="row">background-critical-hover</th>
      <td class="background-critical-hover"></td>
    </tr>
    <tr>
      <th scope="row">background-critical-subtle</th>
      <td class="background-critical-subtle"></td>
    </tr>
    <tr>
      <th scope="row">background-danger</th>
      <td class="background-danger"></td>
    </tr>
    <tr>
      <th scope="row">background-danger-active</th>
      <td class="background-danger-active"></td>
    </tr>
    <tr>
      <th scope="row">background-danger-hover</th>
      <td class="background-danger-hover"></td>
    </tr>
    <tr>
      <th scope="row">background-danger-secondary</th>
      <td class="background-danger-secondary"></td>
    </tr>
    <tr>
      <th scope="row">background-danger-subtle</th>
      <td class="background-danger-subtle"></td>
    </tr>
    <tr>
      <th scope="row">background-hover</th>
      <td class="background-hover"></td>
    </tr>
    <tr>
      <th scope="row">background-information</th>
      <td class="background-information"></td>
    </tr>
    <tr>
      <th scope="row">background-information-active</th>
      <td class="background-information-active"></td>
    </tr>
    <tr>
      <th scope="row">background-information-hover</th>
      <td class="background-information-hover"></td>
    </tr>
    <tr>
      <th scope="row">background-information-subtle</th>
      <td class="background-information-subtle"></td>
    </tr>
    <tr>
      <th scope="row">background-inverse</th>
      <td class="background-inverse"></td>
    </tr>
    <tr>
      <th scope="row">background-neutral</th>
      <td class="background-neutral"></td>
    </tr>
    <tr>
      <th scope="row">background-success</th>
      <td class="background-success"></td>
    </tr>
    <tr>
      <th scope="row">background-success-active</th>
      <td class="background-success-active"></td>
    </tr>
    <tr>
      <th scope="row">background-success-hover</th>
      <td class="background-success-hover"></td>
    </tr>
    <tr>
      <th scope="row">background-success-subtle</th>
      <td class="background-success-subtle"></td>
    </tr>
    <tr>
      <th scope="row">background-warning</th>
      <td class="background-warning"></td>
    </tr>
    <tr>
      <th scope="row">background-warning-active</th>
      <td class="background-warning-active"></td>
    </tr>
    <tr>
      <th scope="row">background-warning-hover</th>
      <td class="background-warning-hover"></td>
    </tr>
    <tr>
      <th scope="row">background-warning-secondary</th>
      <td class="background-warning-secondary"></td>
    </tr>
    <tr>
      <th scope="row">background-warning-subtle</th>
      <td class="background-warning-subtle"></td>
    </tr>
  </tbody>
</table>
```

The color utility classes for background, text, and borders are defined in the [\_utilities](<https://github.com/siemens/element/tree/main/projects/element-theme/src/styles/mixins/_utilities.scss>) file.

Using contextual colors within SASS stylesheets is also possible by importing the Element Theme variables.

```
@use '@siemens/element-theme/src/styles/variables';

background-color: variables.$si-sys-color-background-0;
color: variables.$si-sys-color-text-warning;
...
```
