<ul>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>
<ul>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  font-family: "Exo", Arial, sans-serif;
  background-color: #557;
  padding: 20px;

  display: grid;
  gap: 10px;
  place-content: center;
}

ul {
  list-style: none outside none;
  display: flex;
  justify-content: center;
  align-items: center;
}

li {
  width: 40px;
  aspect-ratio: 1 / 1;
}

:root {
  --primary-hue: 257;
  --primary-saturation: 40%;
  --primary-lightness: 57%;
}

li {
  background-color: hsl(
    var(--primary-hue) var(--primary-saturation) var(--primary-lightness)
  );
}

ul:first-child li:nth-child(1) {
  background-color: hsl(
    var(--primary-hue) var(--primary-saturation)
      calc(var(--primary-lightness) + 40%)
  );
}
ul:first-child li:nth-child(2) {
  background-color: hsl(
    var(--primary-hue) var(--primary-saturation)
      calc(var(--primary-lightness) + 20%)
  );
}
ul:first-child li:nth-child(3) {
  background-color: hsl(
    var(--primary-hue) var(--primary-saturation) var(--primary-lightness)
  );
}
ul:first-child li:nth-child(4) {
  background-color: hsl(
    var(--primary-hue) var(--primary-saturation)
      calc(var(--primary-lightness) - 20%)
  );
}
ul:first-child li:nth-child(5) {
  background-color: hsl(
    var(--primary-hue) var(--primary-saturation)
      calc(var(--primary-lightness) - 40%)
  );
}

ul:last-child li:nth-child(1) {
  background-color: hsl(
    var(--primary-hue) calc(var(--primary-saturation) + 40%)
      var(--primary-lightness)
  );
}
ul:last-child li:nth-child(2) {
  background-color: hsl(
    var(--primary-hue) calc(var(--primary-saturation) + 20%)
      var(--primary-lightness)
  );
}
ul:last-child li:nth-child(3) {
  background-color: hsl(
    var(--primary-hue) var(--primary-saturation) var(--primary-lightness)
  );
}
ul:last-child li:nth-child(4) {
  background-color: hsl(
    var(--primary-hue) calc(var(--primary-saturation) - 20%)
      var(--primary-lightness)
  );
}
ul:last-child li:nth-child(5) {
  background-color: hsl(
    var(--primary-hue) calc(var(--primary-saturation) - 40%)
      var(--primary-lightness)
  );
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.