Accent color

Also called brand color, primary color, or theme color

The one highlight color an interface uses for actions and selected states, and the CSS property that tints native form controls.

What is Accent color?

An accent color is the single bright color that marks what is interactive or important: primary buttons, links, switches, selected tabs, focus rings, and progress. Everything else stays neutral, so the accent guides the eye. Most apps define it once as a CSS variable or theme token and reuse it everywhere.

CSS also has an accent-color property that tints native checkboxes, radio buttons, range sliders, and progress bars in one line, such as accent-color: #7c3aed. Custom components still need the variable, so set both from the same value.

Check contrast everywhere the accent appears: text on accent buttons, and the accent as link color on your backgrounds. Bright yellows and light greens usually need dark text on top, and a darker shade when used as text on white.

All terms

Color contrast

How much text stands out from its background, measured as a ratio from 1:1 to 21:1 and checked against the WCAG levels AA and AAA.

Button variants

A set of button styles, such as primary, secondary, outline, ghost, destructive, and link, that shows which action on a screen matters most.

Dark mode

An alternate color theme with light text on dark backgrounds, chosen in settings or matched to the device’s system setting.

Checkbox

A small square you tick to turn an option on or select an item, with a dash in a parent box when only some items are checked.