I have been using the following CSS code on my website to change the color of selected text, and it seems to work on every browser except Safari. Please let me know what should be added as the Safari Browser seems to darken whatever color I choose, unlike other browsers:
<style>
::selection {
background-color: #003200;
color: #fff8dc;
}
this issue described here
For now you can make your background-color 99% opacity
::selection {
background-color: rgba(0, 50, 0, 0.99);
color: #fff8dc;
}