CSS accent-color Property
Description
The accent-color property allows developers to control the visual accent color used by certain form controls and UI elements that are rendered by the browser’s native styling. Instead of fully rebuilding form elements with complex CSS or JavaScript, accent-color provides a simple and consistent way to customize their appearance while preserving accessibility, usability, and platform-native behavior.
This property primarily affects interactive elements such as checkboxes, radio buttons, range sliders, and progress indicators. When applied, it changes the highlight or “accent” portion of these controls - for example, the checkmark inside a checkbox, the filled portion of a progress bar, or the active thumb of a range slider.
One of the key advantages of accent-color is that it respects the browser’s built-in design system. Rather than overriding every visual detail, it blends seamlessly with the user’s operating system, theme, and accessibility preferences. This ensures that form controls still look familiar to users while matching the color identity of your website or application.
The property can be applied globally (such as on the :root or body element) or scoped to specific form controls. This makes it easy to create consistent theming across an entire interface or highlight individual UI sections with distinct accent colors. Because the styling is handled natively by the browser, performance remains high and compatibility with assistive technologies is maintained.
Another important benefit of accent-color is its responsiveness to user preferences such as high-contrast modes or forced color schemes. Browsers may adapt or override the chosen color when necessary to maintain readability and accessibility, ensuring a better experience for all users.
Definition
- Initial value
- auto
- Applies to
- all elements
- Inherited
- yes
- Computed value
- the keyword auto or a computed color
- Animatable
- by computed value type
- JavaScript syntax
- object.style.accentColor
Interactive Demo
Syntax
accent-color: auto | <color> | initial | inherit
Values
- autoRepresents a UA-chosen color, which should match the accent color of the platform, if any.
- <color>Specifies the color to be used as the accent color.
Example
Browser Support
The following information will show you the current browser support for the CSS accent-color property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 3rd January 2026
