Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I override or change the background color of text selected in Google Docs? It is difficult for me to see the difference and I would like to increase the contrast or difference.

After Google restyled Google Docs last year (or earlier this year), I've been unable to see selected text. It's possible this is a visual deficiency with my eyes. In Google Docs, under both Google Chrome (17.0.963.83 (Official Build 127885) m) and Firefox (11.0), when I select text inside a Google Doc, the selected text has a background of color #d6e0f5.

Compare this to the default browser background color of #2f65c0. (I determined the color of the selected text background by taking a screenshot and using the color picker tool in Photoshop). I've tested this using a brand new Firefox profile as well as google chrome profile.

Here's a section of a screenshot showing the selected text :

some words highlighted to see difference

I've tried using a userscript to override the CSS to go back to the default text selection color using the "Stylish" plugin with this css :

::selection {

::-moz-selection {

::-webkit-selection {

This code works on other sites, but I'm unable to get it to work on Google Docs. (I tested on other sites but applying the userscript to a different domain and using bright yellow instead of the default dark blue #2f65c0.)

When you use Google Docs, do you have the same color background for selected text or something different? (To test this, browse to docs.google.com , create a document, type text into the document, select the text with the mouse by dragging over it, take a screenshot, load the screenshot up in an image editor and determine the background color of the selected text.)

This color differential (between light blue #d6e0f5 and white #fffff) may be easy to see for others and the problem lies with my eyes.

share|improve this question

migrated from superuser.com Mar 29 '12 at 16:26

This question came from our site for computer enthusiasts and power users.

Selected text is clearly visible for me in Google Docs. As Lie says, try adjusting your monitor, or perhaps your viewing angle. Some LCD monitors with high brightness settings make light shades of gray hard to distinguish from white, especially when not viewing them at 90 degree angles. – aaamos Mar 29 '12 at 1:58
I have this problem too so I suspect it's color-blindness related. The contrast of the highlight color is not good. – mdoar Aug 3 '12 at 21:42
up vote 4 down vote accepted

Instead of to ::selection, apply the new background color to the class .kix-selection-overlay, like such:

.kix-selection-overlay {

PS: the background color is fairly subtle, but it wasn't difficult to see at all for me. You might want to adjust the color contrast of your screen to see if it helps.

share|improve this answer
Interesting. So it looks like what Google is doing is applying some kind of global tweak to this background value. If I set it to #2f65c0 using the ".kix-selection-overlay" value, the resulting actual color is #d5e0f3. If, as a test, I set it to #00000, the resulting color is #cccccc. So, the ".kix-selection-overlay" defintely affects the background color of a selection but in a subtle way. – gene_wood Mar 30 '12 at 15:13
So the main fix is what you suggested in your PS which is that my monitor contrast was set to 100/100. I turned it down to 50/100 and the contrast in the image included in my question as well as documents is now such that I can see it clearly. Thanks! – gene_wood Mar 30 '12 at 15:16
As for the selection block having different actual value than kix-selection-overlay, I believe it's because kix-selection-overlay had an opacity. – Lie Ryan Mar 30 '12 at 17:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.