Effect How to - Compare solarized colors








Question

We would like to know how to compare solarized colors.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {<!--from  w  w w . j av  a 2 s.com-->
  background-color: #002A35;
}

div.color {
  display: inline-block;
  width: 100px;
  height: 100px;
  margin: 5px;
  color: white;
}
</style>
</head>
<body>
  <div class='color' style='background-color: #586E75'>#586E75</div>
  <div class='color' style='background-color: #93A1A1'>#93A1A1</div>
  <div class='color' style='background-color: #859900'>#859900</div>
  <div class='color' style='background-color: #CB4B16'>#CB4B16</div>
  <div class='color' style='background-color: #2AA198'>#2AA198</div>
  <div class='color' style='background-color: #DC322F'>#DC322F</div>
  <div class='color' style='background-color: #268BD2'>#268BD2</div>
  <div class='color' style='background-color: #B58900'>#B58900</div>
</body>
</html>

The code above is rendered as follows: