title: Why am I getting different colors in different browsers using the same hexadecimal value?
body: <p>I set the selection color in my css file, using a hexadecimal value. The thing is, Firefox and Chrome do not render the same color out of this.</p>
  
  <p>Do I need to specify something to make the code render the same?</p>
  
  <p>I tried using the <code>-webkit-</code> and got nothing out of it. The hexadecimal value is the exact same I used for the text color. Everything, from rendering color to JS animations works perfectly with Firefox and IE, but Chrome does weird things.</p>
  
  <p>On Chrome:</p>
  
  <p><a href="https://i.stack.imgur.com/Jijvl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jijvl.png" alt="Chrome"></a></p>
  
  <p>On Firefox:</p>
  
  <p><a href="https://i.stack.imgur.com/fgPLr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fgPLr.png" alt="On Firefox"></a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>::selection {
    background: #f997f1;
  }
  
  ::-webkit-selection {
    background: #f997f1;
  }
  
  ::-moz-selection {
    background: #f997f1;
  }
  
  body {
    background: lightblue;
  }
  
  p {
    font-family: sans-serif;
    font-size: 2em;
    color: #f997f1;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;p&gt;Some text to select&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>