Color collection

Radix Colors

A gorgeous, accessible color system — 31 palettes, each with 12 steps designed for light and dark modes.

About Radix Colors

Radix Colors is an open-source color system designed for building accessible and beautiful user interfaces. Created by the team behind Radix UI, it powers popular design systems like shadcn/ui. Each palette follows a carefully crafted 12-step scale with clearly defined semantic roles.

The system includes 31 palettes: 25 chromatic (amber, blue, crimson…) and 6 neutral grays (gray, mauve, slate, sage, olive, sand). Every palette ships in both light and dark variants that can be swapped at runtime — making it trivially easy to support dark mode without maintaining separate color sets.

The 12-step scale

Each palette uses a consistent 12-step scale where every step has a specific semantic purpose:

1–2
App backgrounds — Page background, subtle background
3–5
Component backgrounds — Normal, hover, active states
6–8
Borders & separators — Subtle, normal, strong borders
9–10
Solid colors — Accent background, solid hover
11–12
Text — Low-contrast, high-contrast text
AAlpha variants — each step also has a transparent equivalent (e.g. blueA9)

Using Radix Colors

Radix Colors is commonly used via CSS variables, which makes switching between light and dark trivial. The shadcn/ui component library uses it as its default color system.

/* Install */
npm install @radix-ui/colors

/* Import in CSS */
@import '@radix-ui/colors/blue.css';
@import '@radix-ui/colors/blue-dark.css';

/* Use CSS variables */
color: var(--blue-11);
background: var(--blue-3);

All palettes