title: Given a start color and a middle color, how to get the remaining colors? (Python)
body: <p>I am trying to build a color palette around 2 colors: teal and rose</p>
  
  <p>I found this website: <a href="https://learnui.design/tools/data-color-picker.html#palette" rel="noreferrer">https://learnui.design/tools/data-color-picker.html#palette</a>
  Which could do half of what  I was looking for so I wanted to try to do this in python using <code>matplotlib</code>, <code>seaborn</code>, <code>palettable</code>, and/or <code>colorsys</code>.</p>
  
  <p><strong>Is there a way to interpolate what the next colors would be given a series of colors in a gradient?</strong> </p>
  
  <p>For example, from the website I gave the <code>start_color</code> and <code>end_color</code>.  It gave me 6 colors ranging from <code>start_color</code> to <code>end_color</code>.  Is there a way to do this but to make the <code>end_color</code> the <code>middle_color</code> and continue to gradient? </p>
  
  <pre><code>from palettable.cartocolors.diverging import TealRose_7
  import matplotlib as mpl
  import seaborn as sns
  
  start_color = "#009392"
  end_color = "#d0587e"
  
  # https://learnui.design/tools/data-color-picker.html#palette
  colors = ['#009392', '#0091b2', '#2b89c8', '#7c7ac6', '#b366ac', '#d0587e']
  
  sns.palplot(colors)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/PtsaR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PtsaR.png" alt="enter image description here"></a></p>
  
  <p>I would like to make the teal <code>start_color</code> remain the first color, make the rose <code>end_color</code> the <code>middle_color</code> (in between 3 and 4), and then have the color palette finish to make 6 total colors.  </p>
  
  <p>I was going to try and get the RGB values and then do some type of modeling to figure out where it would go but I think there is probably an easier way to do this. </p>