property
Accent color — CSS reference
Sets a preferred accent for supported native widgets such as checkboxes and range inputs. The browser controls which parts use it and may adjust contrast. It does not recolor every part of every widget.
Formal Syntax & Structure
css syntaxcss
accent-color: rgb(0, 128, 0);Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>accent-color</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#a{accent-color:rgb(0, 128, 0)}</style><body><label><input id="a" type="checkbox" checked> Enabled</label></body></html>