CSS3 ::selection Selector

::-moz-selection { /* For Firefox */
    color: white;
    background: #65208a;
}

::selection { /* WebKit/Blink Browsers */
    color: white;
    background: #65208a;
}


Example:

Select some text here.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ac dignissim purus. Integer aliquet urna lacus, vitae luctus justo dapibus et. Nulla finibus sapien felis, in suscipit diam lobortis et.