'How to add SVG into background url

I want to change the color of the waves with new color values, however, I'm not sure how can I add the SVG into .wave background. Any help is appreciated!

// best seen at 1500px or less

html, body { height: 100%; }
body {
  background:#FFF;
  overflow: hidden;
}

.ocean { 
  height: 5%;
  width:100%;
  position:absolute;
  bottom:0;
  left:0;
  background: #015871;
}

.wave {
  background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg) repeat-x; 
  position: absolute;
  top: -198px;
  width: 6400px;
  height: 198px;
  animation: wave 7s cubic-bezier( 0.36, 0.45, 0.63, 0.53) infinite;
  transform: translate3d(0, 0, 0);
}

.wave:nth-of-type(2) {
  top: -175px;
  animation: wave 7s cubic-bezier( 0.36, 0.45, 0.63, 0.53) -.125s infinite, swell 7s ease -1.25s infinite;
  opacity: 1;
}

@keyframes wave {
  0% {
    margin-left: 0;
  }
  100% {
    margin-left: -1600px;
  }
}

@keyframes swell {
  0%, 100% {
    transform: translate3d(0,-25px,0);
  }
  50% {
    transform: translate3d(0,5px,0);
  }
}
<div class="ocean">
  <div class="wave"></div>
  <div class="wave"></div>
</div>

I was able to change the color value. But I'm not sure how can I add this svg into .wave background.

<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="198">
  <defs>
    <linearGradient id="a" x1="50%" x2="50%" y1="-10.959%" y2="100%">
      <stop stop-opacity=".25" offset="0%" style="color: #CC5454;" stop-color="#CC5454"/>
      <stop offset="100%" style="color: #B51212;" stop-color="#B51212"/>
    </linearGradient>
  </defs>
  <path fill="url(#a)" fill-rule="evenodd" d="M.005 121C311 121 409.898-.25 811 0c400 0 500 121 789 121v77H0s.005-48 .005-77z" transform="matrix(-1 0 0 1 1600 0)"/>
</svg>
css


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source