You can take a look at the dircolors
command, it's used to set up the color for command ls
. And there are also different colors for different types of directories. So you need to take care of which type of the directory you want to change the color.
For example, the origin situation:

Then I change the OTHER_WRITABLE
from 34;42
into 01;32
and it looks like this:

Note: Change it carefully and remember what does the color mean.
Update:
output the current setting:
dircolors -p > ~/.dircolors
Change the color as you need, here is an example:

Apply the new setting:
dircolors -b ~/.dircolors
Then open a new terminal, the new setting will be in use. Suggest you first backup before changing.