iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Use the CSS accent-color property to tint supported native checkboxes, radio buttons, range sliders, and progress bars without rebuilding their browser-provided appearance:
input[type="checkbox"],
input[type="radio"],
input[type="range"],
progress {
accent-color: rebeccapurple;
}
The controls remain native; the browser may adjust the authored color to preserve legibility or follow platform settings. Browser support is not universal, so check the browsers your site supports.
Which controls does accent-color change?
MDN documents accent-color for four types of native controls in supporting browsers:
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →<input type="checkbox"><input type="radio"><input type="range"><progress>
It is not a universal form-color setting. It does not recolor ordinary text inputs, buttons, borders, or necessarily every part or state of an eligible control. For a broad rule, input { accent-color: rebeccapurple; } is concise, but it affects every eligible input in scope. Target types individually or scope a rule to a component when only some controls should use the accent.
#1 Best Overall
- HTML CSS Design and Build Web Sites
- Comes with secure packaging
- It can be a gift option
Set a color globally or for one form
The property accepts auto or any valid CSS <color>, including named colors, hex, rgb(), and hsl(). It is inherited, and its initial value is auto. You can set it on a common ancestor or directly on eligible controls.
/* Set the accent for eligible controls across the page */
:root {
accent-color: #5729e9;
}
/* Or limit it to checkboxes and radio buttons in one form */
.checkout-form input[type="checkbox"],
.checkout-form input[type="radio"] {
accent-color: hsl(255 80% 54%);
}
auto lets the user agent choose an accent, which may match the platform accent where available. Use a specific color when the design calls for a consistent tint. Neither choice guarantees identical pixels in every browser, operating system, control state, or accessibility setting.
Rank #2
Keep the native control unless you need more than a tint
accent-color changes the accent while retaining the browser or platform’s native control appearance. That is usually the simpler choice when the shape and interaction are acceptable. MDN notes that native controls continue to follow platform conventions, including in forced-colors modes.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Use custom styling, often beginning with appearance: none, only when you need to change the control’s shape or detailed appearance. That route means authoring and maintaining more of the control’s visual states and behavior. It also requires particular care in forced-colors settings; do not assume your custom colors will remain visible or meaningful there.
Rank #3
- Brand: Wiley
- Set of 2 Volumes
- A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers
Color, contrast, and forced-colors settings
The CSS Working Group’s CSS Basic User Interface Module Level 4 says user agents must maintain control contrast for legibility. To do so, they may adjust the accent’s luminance or brightness, change other control colors, or create variations that match platform conventions. Treat your declared color as an input to native rendering, not a promise of an exact rendered color.
Forced-colors mode can use a user- and browser-defined palette and override author colors for certain properties. The system color AccentColor represents the background of accented controls, while AccentColorText represents their text; actual values depend on settings. Check that controls remain identifiable and that the accent is not the only way to communicate selected or active state.
Rank #4
- Keep native controls when a tint is enough.
- Check the accent against the control background and nearby text.
- Test forced-colors or high-contrast settings alongside the browsers your project supports.
- Make labels and selected states understandable without relying on color alone.
Browser support and fallback
MDN currently marks accent-color as having limited availability, rather than Baseline support. Its compatibility data lists initial full-support versions of Chrome and Edge 93, Firefox 92, Opera 79, and Safari 15.4; it lists no support for Internet Explorer or Samsung Internet in that data. Compatibility information can change, so consult MDN’s live table for your actual target browsers before relying on the property.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesWhen a browser does not support the declaration, it ignores it and renders the control with its normal styling. Ensure that the control still works and its meaning remains clear without the chosen tint. If a specific branded color is essential, account for the fact that native rendering may differ across platforms.
Best Value
Or skip the browser setup
If what you need is a screenshot of a page showing the controls, ScreenshotNeo can capture it through one API request. The CSS change itself still belongs in your page styles; the API captures the rendered page.
curl -G "https://api.screenshotneo.com/v1/shot"
-d access_key=YOUR_API_KEY
--data-urlencode url=https://stripe.com
-o shot.webp
See the ScreenshotNeo API documentation for request options. Before capture, it accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents. The free plan includes 1,000 screenshots a month without a card; paid plans start at $5 for 3,000 screenshots.
Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchQuick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

