<body>
<p>
<input type="radio" class="custom-radio-blue" checked /> Click me blue!
</p>
<p>
<input type="radio" class="custom-radio-red" checked /> Click me red!
</p>
<style>
.custom-radio-blue {
accent-color: #01adef;
}
.custom-radio-red {
accent-color: red;
}
</style>
</body>
In my code above why red colored radio is working fine and why not blue colored with accent-color css property?
i cannot explain why exactly as the appearance is decided by each browsers differently but if you change your blue from
accent-color: rgb(1,153,255);
toaccent-color: rgb(1,152,255);
or fromaccent-color: rgb(33,152,255);
toaccent-color: rgb(34,152,255);
The browser will internally decide in function of the color brightness if the inner color will be black or white. Hence as a solution i suggest you choose colors that are in the same range of brightness