Unless I misunderstand the question you can just use basic django templates. Let's say you're passing the QuerySet of colours as colours
, then you'd use:
<select>
{% for colour in colours %}
<option style="background-color:#{{ colour.hex }}">{{ colour.name }}</option>
{% endfor %}
</select>