title: How can I define custom colors for use in ZSH prompt?
body: <p>I'm having some difficulty configuring my zsh prompt. Specifically I would like the font to have the color defined by the hex code: #87afdf</p>
  
  <p>Currently, I've set up the prompt as follows:</p>
  
  <pre><code>PROMPT='%B[%d] 
  ➞  %b'
  </code></pre>
  
  <p>I've attempted to add colors in the following way:</p>
  
  <pre><code>autoload -U colors &amp;&amp; colors
  
  PROMPT='%{$fg[#87afdf]%}%B[%d]
  ➞  %b%{$reset_color%}'
  </code></pre>
  
  <p>But this only gives me the following gibberish:</p>
  
  <pre><code>$fg[#87afdf][/Users/gregory]
  ➞  $reset_color
  </code></pre>
  
  <p>Any ideas on how to proceed would be very much appreciated.</p>