# Color

> The color palettes of Home Assistant, and the semantic tokens built on top of them.

Source: https://contributors.home-assistant.io/design/foundations/color/

Home Assistant uses two layers of color tokens:

1. **Core tokens** are the raw palettes below. Do not use them directly in components.
2. **Semantic tokens** describe a purpose, like `--ha-color-text-primary` or `--ha-color-fill-primary-loud-resting`. They point to core tokens, and switch automatically in dark mode.

> [!TIP]
> Reach for a semantic token first. If none fits, that is a conversation for the design team, not a reason to use a core token.

## Primary

- `--ha-color-primary-05`: #001721
- `--ha-color-primary-10`: #002e3e
- `--ha-color-primary-20`: #004156
- `--ha-color-primary-30`: #006787
- `--ha-color-primary-40`: #009ac7
- `--ha-color-primary-50`: #18bcf2
- `--ha-color-primary-60`: #37c8fd
- `--ha-color-primary-70`: #7bd4fb
- `--ha-color-primary-80`: #b9e6fc
- `--ha-color-primary-90`: #dff3fc
- `--ha-color-primary-95`: #eff9fe

## Neutral

- `--ha-color-neutral-05`: #141414
- `--ha-color-neutral-10`: #202020
- `--ha-color-neutral-20`: #363636
- `--ha-color-neutral-30`: #4a4a4a
- `--ha-color-neutral-40`: #5e5e5e
- `--ha-color-neutral-50`: #7a7a7a
- `--ha-color-neutral-60`: #989898
- `--ha-color-neutral-70`: #b1b1b1
- `--ha-color-neutral-80`: #cccccc
- `--ha-color-neutral-90`: #e6e6e6
- `--ha-color-neutral-95`: #f3f3f3

## Status colors

### Green

- `--ha-color-green-05`: #031608
- `--ha-color-green-10`: #052310
- `--ha-color-green-20`: #0a3a1d
- `--ha-color-green-30`: #0a5027
- `--ha-color-green-40`: #036730
- `--ha-color-green-50`: #00883c
- `--ha-color-green-60`: #00ac49
- `--ha-color-green-70`: #5dc36f
- `--ha-color-green-80`: #93da98
- `--ha-color-green-90`: #c2f2c1
- `--ha-color-green-95`: #e3f9e3

### Orange

- `--ha-color-orange-05`: #280700
- `--ha-color-orange-10`: #3b0f00
- `--ha-color-orange-20`: #5e1c00
- `--ha-color-orange-30`: #7e2900
- `--ha-color-orange-40`: #9d3800
- `--ha-color-orange-50`: #c94e00
- `--ha-color-orange-60`: #f36d00
- `--ha-color-orange-70`: #ff9342
- `--ha-color-orange-80`: #ffbb89
- `--ha-color-orange-90`: #ffe0c8
- `--ha-color-orange-95`: #fff0e4

### Red

- `--ha-color-red-05`: #2a040b
- `--ha-color-red-10`: #3e0913
- `--ha-color-red-20`: #631323
- `--ha-color-red-30`: #8a132c
- `--ha-color-red-40`: #b30532
- `--ha-color-red-50`: #dc3146
- `--ha-color-red-60`: #f3676c
- `--ha-color-red-70`: #fd8f90
- `--ha-color-red-80`: #ffb8b6
- `--ha-color-red-90`: #ffdedc
- `--ha-color-red-95`: #fff0ef
