Tutorials

CSS 'accent-color' Property Explained

  • Published
  • 1 min read
  • CSS
  • HTML
  • Web Design
CSS 'accent-color' Property
In this article
  1. CSS 'accent-color' Property Examples
  2. Browser Support
  3. CSS Syntax of the 'accent-color' Property
  4. Usage of the accent-color Property
  5. Property Values of the 'accent-color' Property

Corrected . The browser-support table was rebuilt from MDN browser-compat-data (unprefixed support, desktop browsers), checked 3 October 2026. Editorial approval is still pending.

The CSS 'accent-color' property allows you to customize the color of certain user interface elements, like checkboxes, radio buttons, range sliders, and progress bars, in a webpage. It's a way to ensure these elements match the overall design of your site without having to create custom controls.

CSS 'accent-color' Property Examples

See the Pen CSS accent-color Property by Webzstore (@webzstore) on CodePen.

Using 'accent-color' is a straightforward way to customize the look and feel of form elements and other UI components in a way that's consistent with your site's design.

Browser Support

Unprefixed support for the accent-color property (selected supported implementation, desktop browsers)
BrowserVersionReleased
Chrome93Aug 2021
Edge93Sep 2021
Firefox92Sep 2021
Safari26.2Dec 2025
Opera79Sep 2021

Source: MDN browser-compat-data 8.1.4, checked 3 October 2026. Prefixed support and implementations that were later removed are not counted, and some browsers list partial support or extra values. See the MDN reference for accent-color for the full compatibility details, including mobile browsers.

CSS Syntax of the 'accent-color' Property

accent-color: auto|color|initial|inherit;

Usage of the accent-color Property

Use 'accent-color' to align the color of form controls and other UI elements with your website's theme. For example, suppose your site has a primary color scheme of blue. In that case, you can use accent-color to make checkboxes and radio buttons blue instead of their default browser styling.

Property Values of the 'accent-color' Property

  • Auto: This is the default value. The browser chooses the accent color, typically based on the current color scheme or the system's preferences.
  • Color: This option allows you to specify the accent color. You can use any legal CSS color value, such as RGB, HEX, HSL, or a named color.
  • Initial: Sets the accent-color to its default value, which is auto.
  • Inherit: Inherits the accent-color from its parent element.

Share this article

Written by

Webzstore Team

Webzstore has helped businesses since 2010. Today, we bring websites, digital marketing and enquiry follow-up into practical plans built around the work each business needs.

Related services

Talk about your website or marketing

Book a Free 30-Minute Call

More tutorials

All tutorials

Privacy choices

Choose what this website may load. Your choice is saved on this device for up to 180 days. Privacy Policy

Turning a choice off stops further use of that optional service on this site. It does not take back information already sent, and we cannot delete cookies that other services set in your browser.